Avoid handling NaN when scaling float samples for output
This commit is contained in:
parent
f14cf8289e
commit
67c3e47ed4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user