mixer_plugin: pass audio_output pointer to mixer_plugin.init()

This allows the mixer object to access its associated audio output
object.
This commit is contained in:
Max Kellermann
2009-10-21 09:48:41 +02:00
parent b8ccc885c8
commit ac32f36e4e
9 changed files with 21 additions and 13 deletions

View File

@@ -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);
/**