aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_internal.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-24 07:23:19 +0200
committerMax Kellermann <max@duempel.org>2008-09-24 07:23:19 +0200
commit2b782b82eaadeff36fa230ce3ac30893eb6581e3 (patch)
tree6d53007dd37083bc93647e0c68da705506edf412 /src/output_internal.h
parent6bbea44e91dd954a32915f824eaa28dfbf4d97d7 (diff)
downloadmpd-2b782b82eaadeff36fa230ce3ac30893eb6581e3.tar.gz
mpd-2b782b82eaadeff36fa230ce3ac30893eb6581e3.tar.xz
mpd-2b782b82eaadeff36fa230ce3ac30893eb6581e3.zip
output: semi-asynchronous playback
Send an output buffer to all output plugins at the same time, instead of waiting for each of them separately. Make several functions non-blocking, and introduce the new function audio_output_wait_all() to synchronize with all audio output threads.
Diffstat (limited to '')
-rw-r--r--src/output_internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/output_internal.h b/src/output_internal.h
index 5c11a9521..2455a549a 100644
--- a/src/output_internal.h
+++ b/src/output_internal.h
@@ -109,4 +109,16 @@ struct audio_output {
*/
extern struct notify audio_output_client_notify;
+static inline int
+audio_output_command_is_finished(const struct audio_output *ao)
+{
+ return ao->command == AO_COMMAND_NONE;
+}
+
+static inline int
+audio_output_get_result(const struct audio_output *ao)
+{
+ return ao->result;
+}
+
#endif