diff options
author | Chris Robinson <[email protected]> | 2010-11-25 14:23:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-25 14:23:03 -0800 |
commit | f72c735f9eaf6f438d8344199e54f48cd6a9312e (patch) | |
tree | e3e622f71660d63a8b27609f3c34db51941f7a75 /Alc/mixer.c | |
parent | 9b23fc5db8747b530412ca2390061bb2939b08ff (diff) |
Make sure the target buffer size is frame aligned
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index 073a08fb..772ff599 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -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) { |