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

Method StopSoundImmediate

sndlib/hlsoundlib.cpp:1298–1306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296 StopSound(sound_object_index, SKT_STOP_AFTER_LOOP);
1297}
1298void hlsSystem::StopSoundImmediate(int hlsound_uid) {
1299 int sound_object_index;
1300 if (m_f_hls_system_init < 1)
1301 return; // DAJ -1FIX
1302 sound_object_index = ValidateUniqueId(hlsound_uid);
1303 if (sound_object_index == -1)
1304 return;
1305 StopSound(sound_object_index, SKT_STOP_IMMEDIATELY);
1306}
1307// Forcefully ends a sound
1308void hlsSystem::StopSound(int sound_obj_index, uint8_t f_stop_priority) {
1309 if (!m_f_hls_system_init)

Callers 12

PostLevelResultsFunction · 0.80
PaintPLRSinglePlayerTextFunction · 0.80
TelcomCloseSoundsFunction · 0.80
DoorwayPlaySoundFunction · 0.80
DoorwayStopFunction · 0.80
DoorwayDeactivateAllFunction · 0.80
ClearPlayerFiringFunction · 0.80
StopWeaponFunction · 0.80
processMethod · 0.80
StopVoiceFunction · 0.80
PlayerStopSoundsFunction · 0.80
DoPlayerFrameForOneFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected