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.
This commit is contained in:
Chris Robinson
2020-02-15 22:37:19 -08:00
parent be89684f3c
commit 8665f404a5
+1 -1
View File
@@ -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};