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

Method IsSoundPlaying

sndlib/hlsoundlib.cpp:1418–1427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1416 return m_ll_sound_ptr->CheckAndForceSoundDataAlloc(sound_index);
1417}
1418bool hlsSystem::IsSoundPlaying(int hlsound_uid) {
1419 int hl_index;
1420 if (!m_f_hls_system_init)
1421 return false;
1422 hl_index = ValidateUniqueId(hlsound_uid);
1423 if (hl_index != -1) {
1424 return m_ll_sound_ptr->IsSoundInstancePlaying(m_sound_objects[hl_index].m_sound_uid);
1425 }
1426 return false;
1427}
1428bool hlsSystem::SetSoundQuality(char quality) {
1429 if (!m_f_hls_system_init)
1430 return false;

Callers 2

Play3dSoundMethod · 0.45
Play2dSoundMethod · 0.45

Calls 1

Tested by

no test coverage detected