diff options
Diffstat (limited to '')
-rw-r--r-- | src/mixer/alsa_mixer_plugin.c | 2 | ||||
-rw-r--r-- | src/mixer/oss_mixer_plugin.c | 3 | ||||
-rw-r--r-- | src/mixer/pulse_mixer_plugin.c | 2 | ||||
-rw-r--r-- | src/mixer/software_mixer_plugin.c | 3 | ||||
-rw-r--r-- | src/mixer_control.c | 5 | ||||
-rw-r--r-- | src/mixer_control.h | 3 | ||||
-rw-r--r-- | src/mixer_plugin.h | 5 |
7 files changed, 15 insertions, 8 deletions
diff --git a/src/mixer/alsa_mixer_plugin.c b/src/mixer/alsa_mixer_plugin.c index 0f23bc03f..baf12030c 100644 --- a/src/mixer/alsa_mixer_plugin.c +++ b/src/mixer/alsa_mixer_plugin.c @@ -52,7 +52,7 @@ alsa_mixer_quark(void) } static struct mixer * -alsa_mixer_init(const struct config_param *param, +alsa_mixer_init(G_GNUC_UNUSED void *ao, const struct config_param *param, G_GNUC_UNUSED GError **error_r) { struct alsa_mixer *am = g_new(struct alsa_mixer, 1); diff --git a/src/mixer/oss_mixer_plugin.c b/src/mixer/oss_mixer_plugin.c index 3b97e38f5..4e169bbc4 100644 --- a/src/mixer/oss_mixer_plugin.c +++ b/src/mixer/oss_mixer_plugin.c @@ -74,7 +74,8 @@ oss_find_mixer(const char *name) } static struct mixer * -oss_mixer_init(const struct config_param *param, GError **error_r) +oss_mixer_init(G_GNUC_UNUSED void *ao, const struct config_param *param, + GError **error_r) { struct oss_mixer *om = g_new(struct oss_mixer, 1); diff --git a/src/mixer/pulse_mixer_plugin.c b/src/mixer/pulse_mixer_plugin.c index 3399d5baa..ecc0fc75b 100644 --- a/src/mixer/pulse_mixer_plugin.c +++ b/src/mixer/pulse_mixer_plugin.c @@ -212,7 +212,7 @@ context_state_cb(pa_context *context, void *userdata) static struct mixer * -pulse_mixer_init(const struct config_param *param, +pulse_mixer_init(G_GNUC_UNUSED void *ao, const struct config_param *param, G_GNUC_UNUSED GError **error_r) { struct pulse_mixer *pm = g_new(struct pulse_mixer,1); diff --git a/src/mixer/software_mixer_plugin.c b/src/mixer/software_mixer_plugin.c index e81d265cb..2fcacd46d 100644 --- a/src/mixer/software_mixer_plugin.c +++ b/src/mixer/software_mixer_plugin.c @@ -37,7 +37,8 @@ struct software_mixer { }; static struct mixer * -software_mixer_init(G_GNUC_UNUSED const struct config_param *param, +software_mixer_init(G_GNUC_UNUSED void *ao, + G_GNUC_UNUSED const struct config_param *param, G_GNUC_UNUSED GError **error_r) { struct software_mixer *sm = g_new(struct software_mixer, 1); diff --git a/src/mixer_control.c b/src/mixer_control.c index 7ee9fabf0..df1e43003 100644 --- a/src/mixer_control.c +++ b/src/mixer_control.c @@ -27,14 +27,15 @@ #define G_LOG_DOMAIN "mixer" struct mixer * -mixer_new(const struct mixer_plugin *plugin, const struct config_param *param, +mixer_new(const struct mixer_plugin *plugin, void *ao, + const struct config_param *param, GError **error_r) { struct mixer *mixer; assert(plugin != NULL); - mixer = plugin->init(param, error_r); + mixer = plugin->init(ao, param, error_r); assert(mixer == NULL || mixer->plugin == plugin); diff --git a/src/mixer_control.h b/src/mixer_control.h index f023317e3..a550e0864 100644 --- a/src/mixer_control.h +++ b/src/mixer_control.h @@ -34,7 +34,8 @@ struct mixer_plugin; struct config_param; struct mixer * -mixer_new(const struct mixer_plugin *plugin, const struct config_param *param, +mixer_new(const struct mixer_plugin *plugin, void *ao, + const struct config_param *param, GError **error_r); void diff --git a/src/mixer_plugin.h b/src/mixer_plugin.h index f3f70e2ef..648c3280c 100644 --- a/src/mixer_plugin.h +++ b/src/mixer_plugin.h @@ -38,11 +38,14 @@ struct mixer_plugin { /** * Alocates and configures a mixer device. * + * @param ao the pointer returned by audio_output_plugin.init + * @param param the configuration section, or NULL if there is + * no configuration * @param error_r location to store the error occuring, or * NULL to ignore errors * @return a mixer object, or NULL on error */ - struct mixer *(*init)(const struct config_param *param, + struct mixer *(*init)(void *ao, const struct config_param *param, GError **error_r); /** |