зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1499597 - Don't clamp the Q of a BiquadFilterNode when in low-pass and high-pass mode. r=karlt
Bug1265395
implemented the new filter equations froma6842f2f73
, but missed removing the clamping. Differential Revision: https://phabricator.services.mozilla.com/D49600 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
1cb9560b83
Коммит
415ad2bbdc
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче