diff options
-rw-r--r-- | Alc/filters/biquad.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Alc/filters/biquad.h b/Alc/filters/biquad.h index 57edd782..5d51945e 100644 --- a/Alc/filters/biquad.h +++ b/Alc/filters/biquad.h @@ -113,9 +113,6 @@ using BiquadFilter = BiquadFilterR<float>; inline float calc_rcpQ_from_slope(float gain, float slope) { return std::sqrt((gain + 1.0f/gain)*(1.0f/slope - 1.0f) + 2.0f); } -inline double calc_rcpQ_from_slope(double gain, double slope) -{ return std::sqrt((gain + 1.0/gain)*(1.0/slope - 1.0) + 2.0); } - /** * Calculates the rcpQ (i.e. 1/Q) coefficient for filters, using the normalized * reference frequency and bandwidth. @@ -128,10 +125,4 @@ inline float calc_rcpQ_from_bandwidth(float f0norm, float bandwidth) return 2.0f*std::sinh(std::log(2.0f)/2.0f*bandwidth*w0/std::sin(w0)); } -inline double calc_rcpQ_from_bandwidth(double f0norm, double bandwidth) -{ - const double w0{al::MathDefs<double>::Tau() * f0norm}; - return 2.0*std::sinh(std::log(2.0)/2.0*bandwidth*w0/std::sin(w0)); -} - #endif /* FILTERS_BIQUAD_H */ |