aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-21 09:48:41 +0200
committerMax Kellermann <max@duempel.org>2009-10-21 09:48:41 +0200
commitac32f36e4e1489664e7c202319978b6a9a15ed40 (patch)
treec57ac0a4cc582bbf66727b1e1f2059373923a4da /src/mixer_control.c
parentb8ccc885c883a24265cd49de385b61d368a1b66f (diff)
downloadmpd-ac32f36e4e1489664e7c202319978b6a9a15ed40.tar.gz
mpd-ac32f36e4e1489664e7c202319978b6a9a15ed40.tar.xz
mpd-ac32f36e4e1489664e7c202319978b6a9a15ed40.zip
mixer_plugin: pass audio_output pointer to mixer_plugin.init()
This allows the mixer object to access its associated audio output object.
Diffstat (limited to 'src/mixer_control.c')
-rw-r--r--src/mixer_control.c5
1 files changed, 3 insertions, 2 deletions
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);