Bug 1499597 - Don't clamp the Q of a BiquadFilterNode when in low-pass and high-pass mode. r=karlt

Bug 1265395 implemented the new filter equations from
a6842f2f73,
but missed removing the clamping.

Differential Revision: https://phabricator.services.mozilla.com/D49600

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Paul Adenot 2019-10-18 01:52:39 +00:00
Родитель 1cb9560b83
Коммит 415ad2bbdc
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -104,7 +104,6 @@ void Biquad::setLowpassParams(double cutoff, double resonance) {
setNormalizedCoefficients(1, 0, 0, 1, 0, 0);
} else if (cutoff > 0) {
// Compute biquad coefficients for lowpass filter
resonance = std::max(0.0, resonance); // can't go negative
double g = pow(10.0, -0.05 * resonance);
double w0 = M_PI * cutoff;
double cos_w0 = cos(w0);
@ -134,7 +133,6 @@ void Biquad::setHighpassParams(double cutoff, double resonance) {
setNormalizedCoefficients(0, 0, 0, 1, 0, 0);
} else if (cutoff > 0) {
// Compute biquad coefficients for highpass filter
resonance = std::max(0.0, resonance); // can't go negative
double g = pow(10.0, -0.05 * resonance);
double w0 = M_PI * cutoff;
double cos_w0 = cos(w0);