iirfilter: fix biquad filter coefficients.

The current filter implementation should only have the cx coefficients
divided by gain in order to give the correct output scale.
This commit is contained in:
Justin Ruggles 2011-06-06 17:10:11 -04:00
parent edeb56fa31
commit 2f37321abc

View File

@ -151,8 +151,6 @@ static int biquad_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c,
// during filtering, the delay state will include the gain multiplication
c->cx[0] = lrintf(x0 / c->gain);
c->cx[1] = lrintf(x1 / c->gain);
c->cy[0] /= c->gain;
c->cy[1] /= c->gain;
return 0;
}