Reset the ringbuffer when stopping OpenSL playback

This commit is contained in:
Chris Robinson 2022-04-26 23:42:23 -07:00
parent 593966c8db
commit d9fe5a11cd

View File

@ -613,6 +613,8 @@ void OpenSLPlayback::stop()
result = VCALL(bufferQueue,GetState)(&state); result = VCALL(bufferQueue,GetState)(&state);
} while(SL_RESULT_SUCCESS == result && state.count > 0); } while(SL_RESULT_SUCCESS == result && state.count > 0);
PRINTERR(result, "bufferQueue->GetState"); PRINTERR(result, "bufferQueue->GetState");
mRing.reset();
} }
} }