Don't round up the dst size when the src size was saturated

This commit is contained in:
Chris Robinson
2020-06-29 19:41:08 -07:00
parent 775187788a
commit b0e72266b6
+1 -1
View File
@@ -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