aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-13 06:52:44 -0700
committerChris Robinson <[email protected]>2010-05-13 06:52:44 -0700
commit6dab9d54d1719105e0183f941a2b3dd36e9ba902 (patch)
tree4f8a5b998bd9d267acb01e23fce08f839b3ec106 /Alc
parent7ed5d12717424352cc0d76cf6544e5f3dbbf5086 (diff)
Use the loop start when filling in padding data for looping sources
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index df2ec025..bb7cc553 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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