MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / IsSoundPlaying

Method IsSoundPlaying

sndlib/sdlsound.cpp:515–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515int lnxsound::IsSoundPlaying(int sound_index) {
516 if (sound_device == 0)
517 return -1;
518
519 for (auto &current_slot : sound_cache) {
520 if ((current_slot.m_status != SSF_UNUSED) && (current_slot.m_sound_index == sound_index)) {
521 return current_slot.m_unique_id;
522 }
523 }
524
525 return -1;
526}
527
528// Stops 2d and 3d sounds
529void lnxsound::StopSound(int sound_uid, uint8_t f_immediately) {

Callers 3

TelcomStartSoundFunction · 0.45
UpdateVoicesFunction · 0.45
PlayMenuSoundFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected