diff options
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/chorus.cpp | 10 | ||||
-rw-r--r-- | Alc/effects/echo.cpp | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Alc/effects/chorus.cpp b/Alc/effects/chorus.cpp index 95f47d36..e0878eb0 100644 --- a/Alc/effects/chorus.cpp +++ b/Alc/effects/chorus.cpp @@ -188,11 +188,11 @@ void ChorusState::update(const ALCcontext *Context, const ALeffectslot *Slot, co void ChorusState::process(ALsizei SamplesToDo, const ALfloat (*RESTRICT SamplesIn)[BUFFERSIZE], ALfloat (*RESTRICT SamplesOut)[BUFFERSIZE], ALsizei NumChannels) { - const ALsizei bufmask = mSampleBuffer.size()-1; - const ALfloat feedback = mFeedback; - const ALsizei avgdelay = (mDelay + (FRACTIONONE>>1)) >> FRACTIONBITS; - ALfloat *RESTRICT delaybuf = mSampleBuffer.data(); - ALsizei offset = mOffset; + const auto bufmask = static_cast<ALsizei>(mSampleBuffer.size()-1); + const ALfloat feedback{mFeedback}; + const ALsizei avgdelay{(mDelay + (FRACTIONONE>>1)) >> FRACTIONBITS}; + ALfloat *RESTRICT delaybuf{mSampleBuffer.data()}; + ALsizei offset{mOffset}; ALsizei i, c; ALsizei base; 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; |