diff options
author | Chris Robinson <[email protected]> | 2018-12-12 21:18:31 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-12 21:18:31 -0800 |
commit | b779ebb512b840a325b32f258261c37bf36a1b7a (patch) | |
tree | 4f09621bb0f307601e8ffdfa9e2dc02bc9630421 /Alc/effects/echo.cpp | |
parent | b37bc9f8b7c5ff5f25069ae307c0255ec4320458 (diff) |
Fix some MSVC conversion warnings
Diffstat (limited to 'Alc/effects/echo.cpp')
-rw-r--r-- | Alc/effects/echo.cpp | 10 |
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; |