diff options
author | Chris Robinson <[email protected]> | 2022-01-27 04:04:41 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-01-27 04:04:41 -0800 |
commit | 619249371a40f03cf988d1f5750d643df797c485 (patch) | |
tree | e16d0fdfc8e89004766be4d058d87c47f569a384 /alc/effects/convolution.cpp | |
parent | f8ac1ffe805b13c8b1cd2bc4d4a8362cbe1c2cbe (diff) |
Remove math_defs.h
Diffstat (limited to 'alc/effects/convolution.cpp')
-rw-r--r-- | alc/effects/convolution.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/alc/effects/convolution.cpp b/alc/effects/convolution.cpp index 10e3dd9d..196238fc 100644 --- a/alc/effects/convolution.cpp +++ b/alc/effects/convolution.cpp @@ -35,7 +35,6 @@ #include "core/fmt_traits.h" #include "core/mixer.h" #include "intrusive_ptr.h" -#include "math_defs.h" #include "polyphase_resampler.h" #include "vector.h" @@ -121,6 +120,10 @@ struct ChanMap { float elevation; }; +constexpr float Deg2Rad(float x) noexcept +{ return static_cast<float>(al::numbers::pi / 180.0 * x); } + + using complex_d = std::complex<double>; constexpr size_t ConvolveUpdateSize{256}; @@ -346,7 +349,7 @@ void ConvolutionState::update(const ContextBase *context, const EffectSlot *slot * to have its own output target since the main mixing buffer won't have an * LFE channel (due to being B-Format). */ - static const ChanMap MonoMap[1]{ + static constexpr ChanMap MonoMap[1]{ { FrontCenter, 0.0f, 0.0f } }, StereoMap[2]{ { FrontLeft, Deg2Rad(-45.0f), Deg2Rad(0.0f) }, |