Don't clamp pitch at 2.0 for the AL backend. That's not required

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5997 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2021-07-30 11:40:37 +00:00
parent 87245a290a
commit 5584fb1ab1

View file

@ -968,7 +968,7 @@ static void OpenAL_ChannelUpdate(soundcardinfo_t *sc, channel_t *chan, chanupdat
}
pitch = (float)chan->rate/(1<<PITCHSHIFT);
pitch = bound(0.5, pitch, 2.0); //openal documents a limit on the allowed range of pitches. clamp to avoid error spam. openal-soft doesn't enforce anything other than it >=0
pitch = max(0.01, pitch); // OpenAL will clamp inside the implementation if need be, only min is important
palSourcef(src, AL_PITCH, pitch);
#ifdef USEEFX