diff options
author | Chris Robinson <[email protected]> | 2008-09-06 14:08:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-09-06 14:08:53 -0700 |
commit | fa76168683863aeab8430110ffed58cf1041677e (patch) | |
tree | 843b8b543466766fd2010445784ddbfbbe696c6a /Alc | |
parent | 5f3329b2c95e2860c7ab8aeaf6d0312385a8e2f6 (diff) |
Clear the end of the buffer when at the end of the queue and not looping
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -779,6 +779,8 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma memcpy(&Data[DataSize*Channels], NextBuf->data, ulExtraSamples); } } + else + memset(&Data[DataSize*Channels], 0, (ALBuffer->padding*Channels*2)); } BufferSize = min(BufferSize, (SamplesToDo-j)); |