Make sure the target buffer size is frame aligned

This commit is contained in:
Chris Robinson 2010-11-25 14:23:03 -08:00
parent 9b23fc5db8
commit f72c735f9e

View File

@ -663,6 +663,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
BufferSize = sizeof(SrcData) - SrcDataSize;
BufferSize = min(DataSize64, BufferSize);
BufferSize -= BufferSize%FrameSize;
if(Source->lSourceType == AL_STATIC)
{