diff options
author | Max Kellermann <max@duempel.org> | 2009-10-21 10:30:42 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-10-21 10:30:42 +0200 |
commit | b479a264b66a5cb74fc8424d7d47035fdfad8799 (patch) | |
tree | 7c8b68a64dd642e4a3ce041080f93f7bbca70660 /test | |
parent | ac32f36e4e1489664e7c202319978b6a9a15ed40 (diff) | |
download | mpd-b479a264b66a5cb74fc8424d7d47035fdfad8799.tar.gz mpd-b479a264b66a5cb74fc8424d7d47035fdfad8799.tar.xz mpd-b479a264b66a5cb74fc8424d7d47035fdfad8799.zip |
pulse: code rewrite using the asynchronous libpulse API
This is a complete rewrite of the PulseAudio output plugin. It uses
the asynchronous API, which gives us more control over everything.
Additionally, it connects to the PulseAudio server on startup, and
keeps this connection up while MPD runs. During pause, instead of
closing the stream, it enables "cork".
Diffstat (limited to 'test')
-rw-r--r-- | test/read_mixer.c | 13 | ||||
-rw-r--r-- | test/run_output.c | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/read_mixer.c b/test/read_mixer.c index fdf6b7fe1..1bf40bd5b 100644 --- a/test/read_mixer.c +++ b/test/read_mixer.c @@ -21,6 +21,8 @@ #include "mixer_list.h" #include "filter_registry.h" #include "pcm_volume.h" +#include "output/pulse_output_plugin.h" +#include "event_pipe.h" #include <glib.h> @@ -28,6 +30,17 @@ #include <string.h> #include <unistd.h> +void +pulse_output_context_state_cb(G_GNUC_UNUSED struct pa_context *context, + G_GNUC_UNUSED void *userdata) +{ +} + +void +event_pipe_emit(G_GNUC_UNUSED enum pipe_event event) +{ +} + const struct filter_plugin * filter_plugin_by_name(G_GNUC_UNUSED const char *name) { diff --git a/test/run_output.c b/test/run_output.c index 5ab9625e8..3731b6c09 100644 --- a/test/run_output.c +++ b/test/run_output.c @@ -24,6 +24,7 @@ #include "audio_parser.h" #include "filter_registry.h" #include "pcm_convert.h" +#include "event_pipe.h" #include <glib.h> @@ -31,6 +32,11 @@ #include <string.h> #include <unistd.h> +void +event_pipe_emit(G_GNUC_UNUSED enum pipe_event event) +{ +} + void pcm_convert_init(G_GNUC_UNUSED struct pcm_convert_state *state) { } |