diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/mixer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index b1ad0771..53ba4aca 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -855,8 +855,9 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) DataSize64 -= BufferPadding+BufferPrePadding; DataSize64 <<= FRACTIONBITS; DataSize64 -= increment; + DataSize64 -= DataPosFrac; - BufferSize = (ALuint)((DataSize64-DataPosFrac+(increment-1)) / increment); + BufferSize = (ALuint)((DataSize64+(increment-1)) / increment); BufferSize = min(BufferSize, (SamplesToDo-OutPos)); if(BufferSize == 0) { |