ao_sndio: use sio_flush() to improve controls responsiveness

Use sio_flush() instead of sio_stop() to improve controls responsiveness.
This commit is contained in:
Alexandre Ratchov
2023-07-24 16:01:25 -04:00
committed by Dudemanguy
parent b7bf5e619f
commit 1bbc7a2cd0
2 changed files with 6 additions and 0 deletions

View File

@@ -235,8 +235,13 @@ static void reset(struct ao *ao)
if (p->playing) {
p->playing = false;
#if HAVE_SNDIO_1_9
if (!sio_flush(p->hdl)) {
MP_ERR(ao, "reset: couldn't sio_flush()\n");
#else
if (!sio_stop(p->hdl)) {
MP_ERR(ao, "reset: couldn't sio_stop()\n");
#endif
}
p->delay = 0;
if (!sio_start(p->hdl)) {