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.
This commit is contained in:
Max Kellermann
2009-10-23 10:33:26 +02:00
parent acc99da73d
commit c426a0bc5c
6 changed files with 218 additions and 136 deletions

View File

@@ -31,11 +31,25 @@
#include <unistd.h>
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)
{