diff options
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); } |