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.
This commit is contained in:
Chris Robinson 2013-05-27 17:47:13 -07:00
parent b1ae44206f
commit bcf4842eb3

View File

@ -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];
}