From 8a0e0265bc5675fe810aae8ee2bbcdd7a29d82c1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Sep 2011 11:32:51 -0700 Subject: [PATCH] Clamp the low-pass reference gain to -60 dB instead of -40 dB --- OpenAL32/alFilter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index 07cc1ea3..5697b868 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -348,11 +348,11 @@ ALfloat lpCoeffCalc(ALfloat g, ALfloat cw) { ALfloat a = 0.0f; - /* Be careful with gains < 0.01, as that causes the coefficient - * head towards 1, which will flatten the signal */ + /* Be careful with gains < 0.001, as that causes the coefficient head + * towards 1, which will flatten the signal */ if(g < 0.9999f) /* 1-epsilon */ { - g = maxf(g, 0.01f); + g = maxf(g, 0.001f); a = (1 - g*cw - aluSqrt(2*g*(1-cw) - g*g*(1 - cw*cw))) / (1 - g); } -- 2.11.4.GIT