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

Method isCurrentlyPlaying

extlibs/soloud/src/core/soloud_queue.cpp:150–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 bool Queue::isCurrentlyPlaying(AudioSource &aSound)
151 {
152 if (mCount == 0 || aSound.mAudioSourceID == 0)
153 return false;
154 mSoloud->lockAudioMutex();
155 bool res = mSource[mReadIndex]->mAudioSourceID == aSound.mAudioSourceID;
156 mSoloud->unlockAudioMutex();
157 return res;
158 }
159
160 result Queue::setParamsFromAudioSource(AudioSource &aSound)
161 {

Callers

nothing calls this directly

Calls 2

lockAudioMutexMethod · 0.80
unlockAudioMutexMethod · 0.80

Tested by

no test coverage detected