output_plugin: replaced output_plugin.get_mixer() with mixer_plugin
The mixer core library is now responsible for creating and managing the mixer object. This removes duplicated code from the output plugins.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "output_internal.h"
|
||||
#include "output_list.h"
|
||||
#include "audio_parser.h"
|
||||
#include "mixer_control.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
@@ -134,5 +135,10 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
|
||||
if (ao->data == NULL)
|
||||
return false;
|
||||
|
||||
if (plugin->mixer_plugin != NULL)
|
||||
ao->mixer = mixer_new(plugin->mixer_plugin, param);
|
||||
else
|
||||
ao->mixer = NULL;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user