From ac32f36e4e1489664e7c202319978b6a9a15ed40 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Oct 2009 09:48:41 +0200 Subject: mixer_plugin: pass audio_output pointer to mixer_plugin.init() This allows the mixer object to access its associated audio output object. --- src/mixer_plugin.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mixer_plugin.h') 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); /** -- cgit v1.2.3