MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / removeRef

Method removeRef

Source/Audio/Audio.cpp:469–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469void Audio::removeRef(uint32_t handle) {
470 auto it = _resources.find(handle);
471 if (it != _resources.end()) {
472 if (it->second->callback) {
473 it->second->callback(it->first);
474 }
475 _resources.erase(it);
476 }
477}
478
479bool Audio::isVoicePlaying(uint32_t handle) const {
480 return _resources.find(handle) != _resources.end();

Callers 1

soloud_stop_voiceFunction · 0.80

Calls 4

callbackMethod · 0.80
findMethod · 0.65
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected