aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bs2b.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/bs2b.cpp')
-rw-r--r--Alc/bs2b.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/bs2b.cpp b/Alc/bs2b.cpp
index b1833b8c..2d1b96aa 100644
--- a/Alc/bs2b.cpp
+++ b/Alc/bs2b.cpp
@@ -91,11 +91,11 @@ static void init(struct bs2b *bs2b)
* $d = 1 / 2 / pi / $fc;
* $x = exp(-1 / $d);
*/
- x = std::exp(-2.0f * F_PI * Fc_lo / bs2b->srate);
+ x = std::exp(-al::MathDefs<float>::Tau() * Fc_lo / bs2b->srate);
bs2b->b1_lo = x;
bs2b->a0_lo = G_lo * (1.0f - x) * g;
- x = std::exp(-2.0f * F_PI * Fc_hi / bs2b->srate);
+ x = std::exp(-al::MathDefs<float>::Tau() * Fc_hi / bs2b->srate);
bs2b->b1_hi = x;
bs2b->a0_hi = (1.0f - G_hi * (1.0f - x)) * g;
bs2b->a1_hi = -x * g;