aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/echo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/effects/echo.cpp')
-rw-r--r--Alc/effects/echo.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/effects/echo.cpp b/Alc/effects/echo.cpp
index 91bdde9a..3604bed4 100644
--- a/Alc/effects/echo.cpp
+++ b/Alc/effects/echo.cpp
@@ -127,11 +127,11 @@ void ALechoState::update(const ALCcontext *context, const ALeffectslot *slot, co
void ALechoState::process(ALsizei SamplesToDo, const ALfloat (*RESTRICT SamplesIn)[BUFFERSIZE], ALfloat (*RESTRICT SamplesOut)[BUFFERSIZE], ALsizei NumChannels)
{
- const ALsizei mask = mSampleBuffer.size()-1;
- const ALsizei tap1 = mTap[0].delay;
- const ALsizei tap2 = mTap[1].delay;
- ALfloat *RESTRICT delaybuf = mSampleBuffer.data();
- ALsizei offset = mOffset;
+ const auto mask = static_cast<ALsizei>(mSampleBuffer.size()-1);
+ const ALsizei tap1{mTap[0].delay};
+ const ALsizei tap2{mTap[1].delay};
+ ALfloat *RESTRICT delaybuf{mSampleBuffer.data()};
+ ALsizei offset{mOffset};
ALfloat z1, z2;
ALsizei base;
ALsizei c, i;