aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-25 00:03:01 -0700
committerChris Robinson <[email protected]>2012-04-25 00:03:01 -0700
commit3833c021c0b10a59fc3ec263d1f6ea8a9f3c9769 (patch)
tree888940aa9c961c96c8fbeded4ca50f448078dad0 /OpenAL32
parentcafbd9461e869d7915268c7c6adf14314bc80138 (diff)
Move a comment
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alFilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index d3abb7b3..b5186470 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -342,10 +342,10 @@ ALfloat lpCoeffCalc(ALfloat g, ALfloat cw)
{
ALfloat a = 0.0f;
- /* 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 */
{
+ /* Be careful with gains < 0.001, as that causes the coefficient head
+ * towards 1, which will flatten the signal */
g = maxf(g, 0.001f);
a = (1 - g*cw - aluSqrt(2*g*(1-cw) - g*g*(1 - cw*cw))) /
(1 - g);