Additional CHAN_OVERLAP awareness for StartSound and ChangeSoundVolume/Pitch.

This commit is contained in:
Marisa Kirisame 2019-12-30 10:51:59 +01:00 committed by drfrag
parent 7919c86f3e
commit ebc6fcccd7

View file

@ -543,7 +543,6 @@ FSoundChan *SoundEngine::StartSound(int type, const void *source,
if (foundit)
{
StopChannel(chan);
break;
}
}
}
@ -1056,7 +1055,6 @@ void SoundEngine::ChangeSoundVolume(int sourcetype, const void *source, int chan
{
GSnd->ChannelVolume(chan, volume);
chan->Volume = volume;
return;
}
}
return;
@ -1087,7 +1085,6 @@ void SoundEngine::ChangeSoundPitch(int sourcetype, const void *source, int chann
(sound_id == -1? (chan->EntChannel == channel) : (chan->OrgID == sound_id)))
{
SetPitch(chan, (float)pitch);
return;
}
}
return;