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:
parent
b1ae44206f
commit
bcf4842eb3
@ -394,12 +394,12 @@ void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat g
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
filter->b[0] /= filter->a[0];
|
|
||||||
filter->b[1] /= filter->a[0];
|
|
||||||
filter->b[2] /= filter->a[0];
|
filter->b[2] /= filter->a[0];
|
||||||
filter->a[0] /= filter->a[0];
|
filter->b[1] /= filter->a[0];
|
||||||
filter->a[1] /= filter->a[0];
|
filter->b[0] /= filter->a[0];
|
||||||
filter->a[2] /= filter->a[0];
|
filter->a[2] /= filter->a[0];
|
||||||
|
filter->a[1] /= filter->a[0];
|
||||||
|
filter->a[0] /= filter->a[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user