aboutsummaryrefslogtreecommitdiffstats
path: root/src/volume.c
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2009-02-26 09:13:07 -0800
committerAvuton Olrich <avuton@gmail.com>2009-02-26 09:13:07 -0800
commit90ee488597534179cd5dce68d84ba1e23569f681 (patch)
tree42b35f1aa206c2ddd4c08d65e35c09baaae8dd48 /src/volume.c
parent1b79449ef13086790082eec18e9a25f784a6dc00 (diff)
downloadmpd-90ee488597534179cd5dce68d84ba1e23569f681.tar.gz
mpd-90ee488597534179cd5dce68d84ba1e23569f681.tar.xz
mpd-90ee488597534179cd5dce68d84ba1e23569f681.zip
mixer: Add "disabled" mixer_type.
Diffstat (limited to 'src/volume.c')
-rw-r--r--src/volume.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/volume.c b/src/volume.c
index 501791016..c5c1e83b2 100644
--- a/src/volume.c
+++ b/src/volume.c
@@ -36,6 +36,7 @@
#define VOLUME_MIXER_TYPE_SOFTWARE 0
#define VOLUME_MIXER_TYPE_HARDWARE 1
+#define VOLUME_MIXER_TYPE_DISABLED 2
#define VOLUME_MIXER_SOFTWARE_DEFAULT ""
#define SW_VOLUME_STATE "sw_volume: "
@@ -131,6 +132,8 @@ void volume_init(void)
if (param) {
if (strcmp(param->value, VOLUME_MIXER_SOFTWARE) == 0) {
volume_mixer_type = VOLUME_MIXER_TYPE_SOFTWARE;
+ } else if (strcmp(param->value, VOLUME_MIXER_DISABLED) == 0) {
+ volume_mixer_type = VOLUME_MIXER_TYPE_DISABLED;
} else if (strcmp(param->value, VOLUME_MIXER_HARDWARE) == 0) {
//nothing to do
} else {