diff options
author | Chris Robinson <[email protected]> | 2020-12-21 21:11:25 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-24 22:49:55 -0800 |
commit | 0d3b041aa25cefb16b6ef2e5d0ad0a2f93986a92 (patch) | |
tree | f8988a7f43dea7bf4df48c4e6b2ca7e5f431da46 /alc/effects/echo.cpp | |
parent | eedc42890fa1358a6639051a39f7e73f8d4d3b07 (diff) |
Avoid AL types and enums in the effect processors
Diffstat (limited to 'alc/effects/echo.cpp')
-rw-r--r-- | alc/effects/echo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/alc/effects/echo.cpp b/alc/effects/echo.cpp index c030ac5b..56e39f73 100644 --- a/alc/effects/echo.cpp +++ b/alc/effects/echo.cpp @@ -25,8 +25,6 @@ #include <algorithm> -#include "AL/efx.h" - #include "alcmain.h" #include "alcontext.h" #include "core/filters/biquad.h" @@ -74,8 +72,8 @@ void EchoState::deviceUpdate(const ALCdevice *Device) // Use the next power of 2 for the buffer length, so the tap offsets can be // wrapped using a mask instead of a modulo - const ALuint maxlen{NextPowerOf2(float2uint(AL_ECHO_MAX_DELAY*frequency + 0.5f) + - float2uint(AL_ECHO_MAX_LRDELAY*frequency + 0.5f))}; + const uint maxlen{NextPowerOf2(float2uint(EchoMaxDelay*frequency + 0.5f) + + float2uint(EchoMaxLRDelay*frequency + 0.5f))}; if(maxlen != mSampleBuffer.size()) al::vector<float,16>(maxlen).swap(mSampleBuffer); |