diff options
author | Chris Robinson <[email protected]> | 2019-01-06 04:16:51 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-06 04:16:51 -0800 |
commit | da3a916042a7ba9426af1d6f03e689dbd7760191 (patch) | |
tree | ab6cfc0d2fd26504a013989af7ecd399a4034914 /Alc/bs2b.cpp | |
parent | 98f3e6a16295029129193a073680a70c034703dd (diff) |
Replace macros with constexpr inline functions
Diffstat (limited to 'Alc/bs2b.cpp')
-rw-r--r-- | Alc/bs2b.cpp | 4 |
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; |