aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-11 22:09:30 -0700
committerChris Robinson <[email protected]>2019-03-11 22:09:30 -0700
commit098c7ca6ea99cbe01f411ffd87c11a37d86cb24c (patch)
treec9a0a02b3dcdfa69d2f7b938c7b10dd3bf745304
parent24b43fe85202d086eaae2cce5e376349651cc56c (diff)
Fix not looping when the source offset is beyond the loop end
-rw-r--r--Alc/mixvoice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp
index 47a2fb10..9f32db0e 100644
--- a/Alc/mixvoice.cpp
+++ b/Alc/mixvoice.cpp
@@ -298,7 +298,7 @@ const ALfloat *DoFilters(BiquadFilter *lpfilter, BiquadFilter *hpfilter,
return src;
}
-ALsizei LoadBufferStatic(ALbufferlistitem *BufferListItem, ALbufferlistitem *BufferLoopItem,
+ALsizei LoadBufferStatic(ALbufferlistitem *BufferListItem, ALbufferlistitem *&BufferLoopItem,
const ALsizei NumChannels, const ALsizei SampleSize, const ALsizei chan, ALsizei DataPosInt,
ALfloat (&SrcData)[BUFFERSIZE + MAX_RESAMPLE_PADDING*2], ALsizei FilledAmt,
const ALsizei SrcBufferSize)