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 Christoph Oelckers
parent d08bb93b84
commit 55e482d0fc
1 changed files with 0 additions and 3 deletions

View File

@ -542,7 +542,6 @@ FSoundChan *SoundEngine::StartSound(int type, const void *source,
if (foundit)
{
StopChannel(chan);
break;
}
}
}
@ -1055,7 +1054,6 @@ void SoundEngine::ChangeSoundVolume(int sourcetype, const void *source, int chan
{
GSnd->ChannelVolume(chan, volume);
chan->Volume = volume;
return;
}
}
return;
@ -1086,7 +1084,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;