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