mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
87245a290a
commit
5584fb1ab1
1 changed files with 1 additions and 1 deletions
|
@ -968,7 +968,7 @@ static void OpenAL_ChannelUpdate(soundcardinfo_t *sc, channel_t *chan, chanupdat
|
||||||
}
|
}
|
||||||
|
|
||||||
pitch = (float)chan->rate/(1<<PITCHSHIFT);
|
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);
|
palSourcef(src, AL_PITCH, pitch);
|
||||||
|
|
||||||
#ifdef USEEFX
|
#ifdef USEEFX
|
||||||
|
|
Loading…
Reference in a new issue