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/distortion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/effects/distortion.cpp') diff --git a/alc/effects/distortion.cpp b/alc/effects/distortion.cpp index c9366791..74cffd4a 100644 --- a/alc/effects/distortion.cpp +++ b/alc/effects/distortion.cpp @@ -27,6 +27,7 @@ #include "alc/effects/base.h" #include "almalloc.h" +#include "alnumbers.h" #include "alnumeric.h" #include "alspan.h" #include "core/bufferline.h" @@ -38,7 +39,6 @@ #include "core/mixer.h" #include "core/mixer/defs.h" #include "intrusive_ptr.h" -#include "math_defs.h" namespace { @@ -77,7 +77,7 @@ void DistortionState::update(const ContextBase *context, const EffectSlot *slot, const DeviceBase *device{context->mDevice}; /* Store waveshaper edge settings. */ - const float edge{minf(std::sin(al::MathDefs::Pi()*0.5f * props->Distortion.Edge), + const float edge{minf(std::sin(al::numbers::pi_v*0.5f * props->Distortion.Edge), 0.99f)}; mEdgeCoeff = 2.0f * edge / (1.0f-edge); -- cgit v1.2.3