From 8665f404a5a25525748c7dd59495368c3592fff8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 15 Feb 2020 22:37:19 -0800 Subject: [PATCH] Always start streaming sources from the start of the queue For sources that don't start with an offset, at least. This is necessary so the completed buffer event will give the correct count if it starts with null or empty buffers that become processed. --- al/source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/al/source.cpp b/al/source.cpp index ed94f20b..27f4cbbc 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -2774,7 +2774,7 @@ START_API_FUNC voice->mLoopBuffer.store(source->queue, std::memory_order_relaxed); else voice->mLoopBuffer.store(nullptr, std::memory_order_relaxed); - voice->mCurrentBuffer.store(BufferList, std::memory_order_relaxed); + voice->mCurrentBuffer.store(source->queue, std::memory_order_relaxed); voice->mPosition.store(0u, std::memory_order_relaxed); voice->mPositionFrac.store(0, std::memory_order_relaxed); bool start_fading{false};