diff options
author | Chris Robinson <[email protected]> | 2020-06-29 19:41:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-06-29 19:41:08 -0700 |
commit | b0e72266b66406eddd3f78e6fcc2df42745f95e7 (patch) | |
tree | a6693b3767cf2ed4c37ade7155649ea3a82eaed4 | |
parent | 775187788ad6902feafa6ed07e65e2f9ce50e92e (diff) |
Don't round up the dst size when the src size was saturated
-rw-r--r-- | alc/voice.cpp | 2 |
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 |