summaryrefslogtreecommitdiffstats
path: root/audio/out/internal.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-29 23:57:11 +0200
committerwm4 <wm4@nowhere>2014-05-30 02:16:25 +0200
commit5dcfc4f6048329e72c077af7a152983c14c8ffd0 (patch)
tree535530834e64ec16c797f35bdec82a6fe768f1ed /audio/out/internal.h
parentec18df84661189b11e426eefd999348b9e60c16a (diff)
downloadmpv-5dcfc4f6048329e72c077af7a152983c14c8ffd0.tar.bz2
mpv-5dcfc4f6048329e72c077af7a152983c14c8ffd0.tar.xz
audio/out/push: add a way to wait for the audio device with poll()
Will be used for ALSA.
Diffstat (limited to 'audio/out/internal.h')
-rw-r--r--audio/out/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/internal.h b/audio/out/internal.h
index 32c6aa7b27..3d586f3848 100644
--- a/audio/out/internal.h
+++ b/audio/out/internal.h
@@ -160,6 +160,10 @@ struct ao_driver {
int ao_play_silence(struct ao *ao, int samples);
void ao_wait_drain(struct ao *ao);
int ao_read_data(struct ao *ao, void **data, int samples, int64_t out_time_us);
+struct pollfd;
+int ao_wait_poll(struct ao *ao, struct pollfd *fds, int num_fds,
+ pthread_mutex_t *lock);
+void ao_wakeup_poll(struct ao *ao);
bool ao_chmap_sel_adjust(struct ao *ao, const struct mp_chmap_sel *s,
struct mp_chmap *map);