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

Method getWave

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

Source from the content-addressed store, hash-verified

290 }
291
292 float * Bus::getWave()
293 {
294 if (mInstance && mSoloud)
295 {
296 int i;
297 mSoloud->lockAudioMutex();
298 for (i = 0; i < 256; i++)
299 mWaveData[i] = mInstance->mVisualizationWaveData[i];
300 mSoloud->unlockAudioMutex();
301 }
302 return mWaveData;
303 }
304
305 float Bus::getApproximateVolume(unsigned int aChannel)
306 {

Callers

nothing calls this directly

Calls 2

lockAudioMutexMethod · 0.80
unlockAudioMutexMethod · 0.80

Tested by

no test coverage detected