aboutsummaryrefslogtreecommitdiffstats
path: root/alc/voice.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-06-29 19:41:08 -0700
committerChris Robinson <[email protected]>2020-06-29 19:41:08 -0700
commitb0e72266b66406eddd3f78e6fcc2df42745f95e7 (patch)
treea6693b3767cf2ed4c37ade7155649ea3a82eaed4 /alc/voice.cpp
parent775187788ad6902feafa6ed07e65e2f9ce50e92e (diff)
Don't round up the dst size when the src size was saturated
Diffstat (limited to 'alc/voice.cpp')
-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