From 6dab9d54d1719105e0183f941a2b3dd36e9ba902 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 13 May 2010 06:52:44 -0700 Subject: Use the loop start when filling in padding data for looping sources --- Alc/ALu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3