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

Function TelcomCloseSounds

Descent3/TelCom.cpp:3301–3309  ·  view source on GitHub ↗

Closes down the Telcom sound system

Source from the content-addressed store, hash-verified

3299
3300// Closes down the Telcom sound system
3301void TelcomCloseSounds(void) {
3302 Sound_system.BeginSoundFrame(Telcom_called_from_game);
3303 for (int i = 0; i < TCSND_SOUNDCOUNT; i++) {
3304 if (TelcomSounds[i].hlhandle != -1) {
3305 Sound_system.StopSoundImmediate(TelcomSounds[i].hlhandle);
3306 }
3307 }
3308 Sound_system.EndSoundFrame();
3309}
3310
3311// Starts a sound playing (if it isn't already)
3312void TelcomStartSound(int sid) {

Callers 1

TelComMainFunction · 0.85

Calls 3

BeginSoundFrameMethod · 0.80
StopSoundImmediateMethod · 0.80
EndSoundFrameMethod · 0.80

Tested by

no test coverage detected