aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-27 17:47:13 -0700
committerChris Robinson <[email protected]>2013-05-27 17:47:13 -0700
commitbcf4842eb3f226faa83e2343e2492dda31386c20 (patch)
tree60ef7df9d3faa95cbc5ccad69983728804a16033
parentb1ae44206f66114fb7d3a76e912fbdeaeb792c7b (diff)
Fix filter coefficient pre-calc
a[0] was getting set to 1 before a[1] and a[2] were normalized. a[0] needs to be done last.
-rw-r--r--OpenAL32/alFilter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index 6b4ce633..5bef87fd 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -394,12 +394,12 @@ void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat g
break;
}
- filter->b[0] /= filter->a[0];
- filter->b[1] /= filter->a[0];
filter->b[2] /= filter->a[0];
- filter->a[0] /= filter->a[0];
- filter->a[1] /= filter->a[0];
+ filter->b[1] /= filter->a[0];
+ filter->b[0] /= filter->a[0];
filter->a[2] /= filter->a[0];
+ filter->a[1] /= filter->a[0];
+ filter->a[0] /= filter->a[0];
}