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