diff options
author | Chris Robinson <[email protected]> | 2010-05-13 06:52:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-05-13 06:52:44 -0700 |
commit | 6dab9d54d1719105e0183f941a2b3dd36e9ba902 (patch) | |
tree | 4f8a5b998bd9d267acb01e23fce08f839b3ec106 /Alc | |
parent | 7ed5d12717424352cc0d76cf6544e5f3dbbf5086 (diff) |
Use the loop start when filling in padding data for looping sources
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1078,7 +1078,7 @@ next_source: { ALint ulExtraSamples = BUFFER_PADDING*Channels*Bytes; ulExtraSamples = min(NextBuf->size, ulExtraSamples); - memcpy(&Data[DataSize*Channels], NextBuf->data, ulExtraSamples); + memcpy(&Data[DataSize*Channels], &NextBuf->data[LoopStart*Channels], ulExtraSamples); } } else |