From f8ac1ffe805b13c8b1cd2bc4d4a8362cbe1c2cbe Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 27 Jan 2022 02:59:07 -0800 Subject: Get rid of MathDefs --- alc/effects/autowah.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/effects/autowah.cpp') 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::Tau(); + w0 = minf((bandwidth*env_delay + freq_min), 0.46f) * (al::numbers::pi_v*2.0f); mEnv[i].cos_w0 = std::cos(w0); mEnv[i].alpha = std::sin(w0)/(2.0f * QFactor); } -- cgit v1.2.3