Added A_StopSounds(int chanmin, int chanmax).

- If both channels are 0, completely silences the actor.
- Adapted A_StopAllSounds to call A_StopSounds(0,0);
This commit is contained in:
Major Cooke 2020-03-01 12:35:19 -06:00 committed by Christoph Oelckers
commit 4cf7c6351d
6 changed files with 21 additions and 10 deletions

View file

@ -506,9 +506,9 @@ void S_StopSound (AActor *actor, int channel)
//
//==========================================================================
void S_StopAllActorSounds(AActor *actor)
void S_StopActorSounds(AActor *actor, int chanmin, int chanmax)
{
soundEngine->StopAllActorSounds(SOURCE_Actor, actor);
soundEngine->StopActorSounds(SOURCE_Actor, actor, chanmin, chanmax);
}
//==========================================================================