diff options
author | Chris Robinson <[email protected]> | 2022-01-27 02:59:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-01-27 02:59:07 -0800 |
commit | f8ac1ffe805b13c8b1cd2bc4d4a8362cbe1c2cbe (patch) | |
tree | a8a24a3e85f7a8f00cf3947da37e97ab0f42d3f6 /alc/effects/autowah.cpp | |
parent | 1bbea9cd3060ef65a2623f156b4f12ebf62c52fe (diff) |
Get rid of MathDefs
Diffstat (limited to 'alc/effects/autowah.cpp')
-rw-r--r-- | alc/effects/autowah.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/autowah.cpp b/alc/effects/autowah.cpp index f496eb51..46cc8fb0 100644 --- a/alc/effects/autowah.cpp +++ b/alc/effects/autowah.cpp @@ -28,6 +28,7 @@ #include "alc/effects/base.h" #include "almalloc.h" +#include "alnumbers.h" #include "alnumeric.h" #include "alspan.h" #include "core/ambidefs.h" @@ -38,7 +39,6 @@ #include "core/effectslot.h" #include "core/mixer.h" #include "intrusive_ptr.h" -#include "math_defs.h" namespace { @@ -159,7 +159,7 @@ void AutowahState::process(const size_t samplesToDo, env_delay = lerp(sample, env_delay, a); /* Calculate the cos and alpha components for this sample's filter. */ - w0 = minf((bandwidth*env_delay + freq_min), 0.46f) * al::MathDefs<float>::Tau(); + w0 = minf((bandwidth*env_delay + freq_min), 0.46f) * (al::numbers::pi_v<float>*2.0f); mEnv[i].cos_w0 = std::cos(w0); mEnv[i].alpha = std::sin(w0)/(2.0f * QFactor); } |