From 2b782b82eaadeff36fa230ce3ac30893eb6581e3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Sep 2008 07:23:19 +0200 Subject: 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. --- src/output_internal.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/output_internal.h') diff --git a/src/output_internal.h b/src/output_internal.h index 5c11a952..2455a549 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 -- cgit v1.2.3