diff options
author | Chris Robinson <[email protected]> | 2022-04-26 23:42:23 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-04-26 23:42:23 -0700 |
commit | d9fe5a11cdbacd22c257e7ea1e17bef781439d8c (patch) | |
tree | 970279a29f06d92a768b40f63282c2f684ee1aa8 | |
parent | 593966c8dbdbf2dbcd8768b258a3b22adb548b2f (diff) |
Reset the ringbuffer when stopping OpenSL playback
-rw-r--r-- | alc/backends/opensl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/alc/backends/opensl.cpp b/alc/backends/opensl.cpp index 76b2095e..3a2100b5 100644 --- a/alc/backends/opensl.cpp +++ b/alc/backends/opensl.cpp @@ -613,6 +613,8 @@ void OpenSLPlayback::stop() result = VCALL(bufferQueue,GetState)(&state); } while(SL_RESULT_SUCCESS == result && state.count > 0); PRINTERR(result, "bufferQueue->GetState"); + + mRing.reset(); } } |