aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alc/voice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/voice.cpp b/alc/voice.cpp
index e256d5b4..266a38c4 100644
--- a/alc/voice.cpp
+++ b/alc/voice.cpp
@@ -664,7 +664,7 @@ void Voice::mix(const State vstate, ALCcontext *Context, const ALuint SamplesToD
* from this.
*/
DataSize64 = SrcBufferSize - MAX_RESAMPLER_PADDING;
- DataSize64 = ((DataSize64<<FRACTIONBITS) - DataPosFrac + increment-1) / increment;
+ DataSize64 = ((DataSize64<<FRACTIONBITS) - DataPosFrac) / increment;
if(DataSize64 < DstBufferSize)
{
/* Some mixers require being 16-byte aligned, so also limit