From e7100377608e282424fde43a196ffdc059d9c4fa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Apr 2009 20:33:06 +0200 Subject: 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. --- doc/user.xml | 11 +++++++++++ src/output_init.c | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/user.xml b/doc/user.xml index 2fb27fc4d..63f5c9f6c 100644 --- a/doc/user.xml +++ b/doc/user.xml @@ -285,6 +285,17 @@ cd mpd-0.14.2 enabled. + + + mixer_enabled + yes|no + + + Specifies whether the hardware mixer of this audio + output should be used. By default, all hardware + mixers are enabled if available. + + diff --git a/src/output_init.c b/src/output_init.c index 8ec1e0145..04609bb76 100644 --- a/src/output_init.c +++ b/src/output_init.c @@ -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; -- cgit v1.2.3