diff options
author | Max Kellermann <max@duempel.org> | 2009-03-09 19:25:26 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-09 19:25:26 +0100 |
commit | 3291666b570b1d20f59db42936eaa37dbeb9ca65 (patch) | |
tree | c3905d60131c9f440d8ca7d7d1ec45cecce02d85 /src/output_init.c | |
parent | ab3d7c29dae44f39df28c85e26b108c44fdbc4bf (diff) | |
download | mpd-3291666b570b1d20f59db42936eaa37dbeb9ca65.tar.gz mpd-3291666b570b1d20f59db42936eaa37dbeb9ca65.tar.xz mpd-3291666b570b1d20f59db42936eaa37dbeb9ca65.zip |
output: play from a music_pipe object
Instead of passing individual buffers to audio_output_all_play(), pass
music_chunk objects. Append all those chunks asynchronously to a
music_pipe instance. All output threads may then read chunks from
this pipe. This reduces MPD's internal latency by an order of
magnitude.
Diffstat (limited to 'src/output_init.c')
-rw-r--r-- | src/output_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output_init.c b/src/output_init.c index 664ca9eb4..5681256d1 100644 --- a/src/output_init.c +++ b/src/output_init.c @@ -124,6 +124,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param, ao->thread = NULL; notify_init(&ao->notify); ao->command = AO_COMMAND_NONE; + ao->mutex = g_mutex_new(); ao->data = ao_plugin_init(plugin, format ? &ao->config_audio_format : NULL, |