Commit 03c7740c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

sndio: clear sync state when resuming from pause

parent 54b3ae83
...@@ -233,7 +233,11 @@ static void Pause (audio_output_t *aout, bool pause, mtime_t date) ...@@ -233,7 +233,11 @@ static void Pause (audio_output_t *aout, bool pause, mtime_t date)
if (pause) if (pause)
sio_stop (sys->hdl); sio_stop (sys->hdl);
else else
{
sys->read_offset = 0;
sys->write_offset = 0;
sio_start (sys->hdl); sio_start (sys->hdl);
}
(void) date; (void) date;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment