From c426a0bc5cc641ecd044c389f7180dad50a355bf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 23 Oct 2009 10:33:26 +0200 Subject: output/pulse: call mixer on state changes Don't let the mixer plugin "override" the libpulse callbacks. Instead, add a "mixer" attribute to the pulse_output struct, and call the mixer on all interesting events. --- test/read_mixer.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/read_mixer.c b/test/read_mixer.c index 1bf40bd5..0272ec67 100644 --- a/test/read_mixer.c +++ b/test/read_mixer.c @@ -31,11 +31,25 @@ #include void -pulse_output_context_state_cb(G_GNUC_UNUSED struct pa_context *context, - G_GNUC_UNUSED void *userdata) +pulse_output_set_mixer(G_GNUC_UNUSED struct pulse_output *po, + G_GNUC_UNUSED struct pulse_mixer *pm) { } +void +pulse_output_clear_mixer(G_GNUC_UNUSED struct pulse_output *po, + G_GNUC_UNUSED struct pulse_mixer *pm) +{ +} + +bool +pulse_output_set_volume(G_GNUC_UNUSED struct pulse_output *po, + G_GNUC_UNUSED const struct pa_cvolume *volume, + G_GNUC_UNUSED GError **error_r) +{ + return false; +} + void event_pipe_emit(G_GNUC_UNUSED enum pipe_event event) { -- cgit v1.2.3