output_init: added option to disable the hardware mixer

Added the per-device option "mixer_enabled" which allows users to
disable the hardware mixer of an audio output.
This commit is contained in:
Max Kellermann
2009-04-28 20:33:06 +02:00
parent 61b0835512
commit e710037760
2 changed files with 13 additions and 1 deletions

View File

@@ -135,7 +135,8 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
if (ao->data == NULL)
return false;
if (plugin->mixer_plugin != NULL)
if (plugin->mixer_plugin != NULL &&
config_get_block_bool(param, "mixer_enabled", true))
ao->mixer = mixer_new(plugin->mixer_plugin, param);
else
ao->mixer = NULL;