diff options
Diffstat (limited to 'alc')
-rw-r--r-- | alc/voice.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/voice.cpp b/alc/voice.cpp index 19b4da2d..8e439b8f 100644 --- a/alc/voice.cpp +++ b/alc/voice.cpp @@ -670,7 +670,8 @@ void ALvoice::mix(const State vstate, ALCcontext *Context, const ALuint SamplesT else if(static_cast<ALuint>(gotBytes) < needBytes) { mFlags |= VOICE_CALLBACK_STOPPED; - mNumCallbackSamples += static_cast<ALuint>(gotBytes) / FrameSize; + mNumCallbackSamples += static_cast<ALuint>(static_cast<ALuint>(gotBytes) / + FrameSize); } else mNumCallbackSamples = toLoad; |