mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
Additional CHAN_OVERLAP awareness for StartSound and ChangeSoundVolume/Pitch.
This commit is contained in:
parent
7919c86f3e
commit
ebc6fcccd7
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue