diff options
author | Chris Robinson <[email protected]> | 2019-05-25 11:36:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-25 11:36:13 -0700 |
commit | 5b5dee07b43808907fba0d2dff5a00ea9069048b (patch) | |
tree | c3291a7058d55e494768e549aef9916ebd34eec8 /Alc/filters | |
parent | ebf33b7c6b747b647eb2177080dc6f46db89867b (diff) |
Remove a couple unused functions
Diffstat (limited to 'Alc/filters')
-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 */ |