Avoid handling NaN when scaling float samples for output

This commit is contained in:
Chris Robinson 2009-10-20 09:48:09 -07:00
parent f14cf8289e
commit 67c3e47ed4

View File

@ -61,9 +61,9 @@ ALboolean DuplicateStereo = AL_FALSE;
static __inline ALfloat aluF2F(ALfloat Value)
{
if(Value < 0.f) Value /= 32768.f;
else Value /= 32767.f;
return Value;
if(Value < 0.f) return Value/32768.f;
if(Value > 0.f) return Value/32767.f;
return 0.f;
}
static __inline ALshort aluF2S(ALfloat Value)