MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / StopSoundEffect

Function StopSoundEffect

TombEngine/Sound/sound.cpp:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391void StopSoundEffect(short effectID)
392{
393 for (int i = 0; i < SOUND_MAX_CHANNELS; i++)
394 {
395 if (SoundSlot[i].Channel != NULL && SoundSlot[i].EffectID == effectID && BASS_ChannelIsActive(SoundSlot[i].Channel) == BASS_ACTIVE_PLAYING)
396 Sound_FreeSlot(i, SOUND_XFADETIME_CUTSOUND);
397 }
398}
399
400void StopAllSounds()
401{

Callers 15

ControlTrainFunction · 0.85
SophiaLeighTowerControlFunction · 0.85
SophiaLeighNormalControlFunction · 0.85
PunaControlFunction · 0.85
UPVControlFunction · 0.85
MoveCartFunction · 0.85
DoUserInputFunction · 0.85
ControlWreckingBallFunction · 0.85
ControlGuardianFunction · 0.85
ControlSpikyCeilingFunction · 0.85

Calls 1

Sound_FreeSlotFunction · 0.85

Tested by

no test coverage detected