diff options
author | Chris Robinson <[email protected]> | 2020-02-15 22:37:19 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-02-15 22:37:19 -0800 |
commit | 8665f404a5a25525748c7dd59495368c3592fff8 (patch) | |
tree | f4bf172128b30f1f7d7e48889c97bee5328fe8f1 /al | |
parent | be89684f3ccc06f56b69bc5c1d54a217b54fcfa2 (diff) |
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.
Diffstat (limited to 'al')
-rw-r--r-- | al/source.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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}; |