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/chorus.cpp | |
parent | b37bc9f8b7c5ff5f25069ae307c0255ec4320458 (diff) |
Fix some MSVC conversion warnings
Diffstat (limited to 'Alc/effects/chorus.cpp')
-rw-r--r-- | Alc/effects/chorus.cpp | 10 |
1 files changed, 5 insertions, 5 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; |