History

ao_sndio: use sio_flush() to improve controls responsiveness

Use sio_flush() instead of sio_stop() to improve controls responsiveness.

Alexandre Ratchov committed 3 years ago

Commit 1bbc7a21 parent b7bf5e62 files · +6 −0Browse files

Unified · Split

2 files
  1. audio/out/ao_sndio.c +5 −0
  2. meson.build +1 −0
audio/out/ao_sndio.c+5−0
@@ -235,8 +235,13 @@ static void reset(struct ao *ao) · 234 unmodified lines
235235 if (p->playing) {
236236 p->playing = false;
237237
238+#if HAVE_SNDIO_1_9
239+ if (!sio_flush(p->hdl)) {
240+ MP_ERR(ao, "reset: couldn't sio_flush()\n");
241+#else
238242 if (!sio_stop(p->hdl)) {
239243 MP_ERR(ao, "reset: couldn't sio_stop()\n");
244+#endif
240245 }
241246 p->delay = 0;
242247 if (!sio_start(p->hdl)) {
meson.build+1−0
@@ -857,6 +857,7 @@ endif · 856 unmodified lines
857857
858858 sndio = dependency('sndio', required: get_option('sndio'))
859859 features += {'sndio': sndio.found()}
860+features += {'sndio-1-9': sndio.version().version_compare('>= 1.9.0')}
860861 if features['sndio']
861862 dependencies += sndio
862863 sources += files('audio/out/ao_sndio.c')

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t