aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 26532091..755c8bf0 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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)