Make sure the target buffer size is frame aligned
This commit is contained in:
parent
9b23fc5db8
commit
f72c735f9e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user