aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-28 20:33:06 +0200
committerMax Kellermann <max@duempel.org>2009-04-28 20:33:06 +0200
commite7100377608e282424fde43a196ffdc059d9c4fa (patch)
tree17836c944adf9a044df91eafba1f7e6a5353ebde /src/output
parent61b083551265c78110855e79b5f12adcd422affb (diff)
downloadmpd-e7100377608e282424fde43a196ffdc059d9c4fa.tar.gz
mpd-e7100377608e282424fde43a196ffdc059d9c4fa.tar.xz
mpd-e7100377608e282424fde43a196ffdc059d9c4fa.zip
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.
Diffstat (limited to '')
-rw-r--r--src/output_init.c3
1 files changed, 2 insertions, 1 deletions
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;