MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getApproximateVolume

Method getApproximateVolume

extlibs/soloud/src/core/soloud_bus.cpp:305–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303 }
304
305 float Bus::getApproximateVolume(unsigned int aChannel)
306 {
307 if (aChannel > mChannels)
308 return 0;
309 float vol = 0;
310 if (mInstance && mSoloud)
311 {
312 mSoloud->lockAudioMutex();
313 vol = mInstance->mVisualizationChannelVolume[aChannel];
314 mSoloud->unlockAudioMutex();
315 }
316 return vol;
317 }
318};

Callers

nothing calls this directly

Calls 2

lockAudioMutexMethod · 0.80
unlockAudioMutexMethod · 0.80

Tested by

no test coverage detected