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

Method IsSoundInstancePlaying

sndlib/sdlsound.cpp:499–513  ·  view source on GitHub ↗

Checks if a sound is playing (removes finished sound);

Source from the content-addressed store, hash-verified

497
498// Checks if a sound is playing (removes finished sound);
499bool lnxsound::IsSoundInstancePlaying(int sound_uid) {
500 int current_slot;
501
502 if (sound_device == 0)
503 return false;
504
505 if ((current_slot = ValidateUniqueId(sound_uid)) == -1)
506 return false;
507
508 if (sound_cache[current_slot].m_status != SSF_UNUSED) {
509 return true;
510 }
511
512 return false;
513}
514
515int lnxsound::IsSoundPlaying(int sound_index) {
516 if (sound_device == 0)

Callers 3

FrameMethod · 0.80
BeginSoundFrameMethod · 0.80
IsSoundPlayingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected