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/modulator.cpp | |
parent | 1bbea9cd3060ef65a2623f156b4f12ebf62c52fe (diff) |
Get rid of MathDefs
Diffstat (limited to 'alc/effects/modulator.cpp')
-rw-r--r-- | alc/effects/modulator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/modulator.cpp b/alc/effects/modulator.cpp index 4a086b11..84561f5c 100644 --- a/alc/effects/modulator.cpp +++ b/alc/effects/modulator.cpp @@ -27,6 +27,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/filters/biquad.h" #include "core/mixer.h" #include "intrusive_ptr.h" -#include "math_defs.h" namespace { @@ -53,7 +53,7 @@ using uint = unsigned int; inline float Sin(uint index) { - constexpr float scale{al::MathDefs<float>::Tau() / WAVEFORM_FRACONE}; + constexpr float scale{al::numbers::pi_v<float>*2.0f / WAVEFORM_FRACONE}; return std::sin(static_cast<float>(index) * scale); } |