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

Function TelcomStopSound

Descent3/TelCom.cpp:3338–3346  ·  view source on GitHub ↗

Stops a sound playing

Source from the content-addressed store, hash-verified

3336
3337// Stops a sound playing
3338void TelcomStopSound(int sid) {
3339 ASSERT(sid >= 0 && sid < TCSND_SOUNDCOUNT);
3340
3341 // see if the sound is already playing
3342 if (TelcomSounds[sid].hlhandle != -1) {
3343 Sound_system.StopSoundLooping(TelcomSounds[sid].hlhandle);
3344 }
3345 TelcomSounds[sid].hlhandle = -1;
3346}
3347
3348//------------------------------------------------------------------------------
3349// Pages a texture into memory, optionally resizing it if in low mem mode

Callers 4

TelComMainFunction · 0.85
TCSSButtonCallbackFunction · 0.85
EfxFreeEffectFunction · 0.85
RenderTextTypeFunction · 0.85

Calls 1

StopSoundLoopingMethod · 0.80

Tested by

no test coverage detected