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/distortion.cpp | |
parent | 1bbea9cd3060ef65a2623f156b4f12ebf62c52fe (diff) |
Get rid of MathDefs
Diffstat (limited to 'alc/effects/distortion.cpp')
-rw-r--r-- | alc/effects/distortion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<float>::Pi()*0.5f * props->Distortion.Edge), + const float edge{minf(std::sin(al::numbers::pi_v<float>*0.5f * props->Distortion.Edge), 0.99f)}; mEdgeCoeff = 2.0f * edge / (1.0f-edge); |