aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_control.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_control.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 'src/output_control.h')
-rw-r--r--src/output_control.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output_control.h b/src/output_control.h
index e16229e21..92973f6c1 100644
--- a/src/output_control.h
+++ b/src/output_control.h
@@ -30,8 +30,8 @@ struct tag;
int audio_output_init(struct audio_output *, ConfigParam * param);
int audio_output_open(struct audio_output *audioOutput,
const struct audio_format *audioFormat);
-int audio_output_play(struct audio_output *audioOutput,
- const char *playChunk, size_t size);
+void audio_output_play(struct audio_output *audioOutput,
+ const char *playChunk, size_t size);
void audio_output_cancel(struct audio_output *audioOutput);
void audio_output_close(struct audio_output *audioOutput);
void audio_output_finish(struct audio_output *audioOutput);