diff options
author | Viliam Mateicka <viliam.mateicka@gmail.com> | 2009-03-02 18:39:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-02 18:57:49 +0100 |
commit | 406b0403a5767387121875ab4b99de467492415f (patch) | |
tree | c136aa6cacd9f99d1456d3ae716e50e1a64c1cd1 /src/volume.c | |
parent | 2f438e5d238840b96414079d17f1b56ab1fba9a5 (diff) | |
download | mpd-406b0403a5767387121875ab4b99de467492415f.tar.gz mpd-406b0403a5767387121875ab4b99de467492415f.tar.xz mpd-406b0403a5767387121875ab4b99de467492415f.zip |
mixer: adding code to optionally disable all hw mixers
Diffstat (limited to '')
-rw-r--r-- | src/volume.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/volume.c b/src/volume.c index 3ff42b9be..46d6118d4 100644 --- a/src/volume.c +++ b/src/volume.c @@ -24,6 +24,7 @@ #include "config.h" #include "audio.h" #include "output_all.h" +#include "mixer_api.h" #include <glib.h> @@ -140,8 +141,10 @@ void volume_init(void) if (param) { if (strcmp(param->value, VOLUME_MIXER_SOFTWARE) == 0) { volume_mixer_type = VOLUME_MIXER_TYPE_SOFTWARE; + mixer_disable_all(); } else if (strcmp(param->value, VOLUME_MIXER_DISABLED) == 0) { volume_mixer_type = VOLUME_MIXER_TYPE_DISABLED; + mixer_disable_all(); } else if (strcmp(param->value, VOLUME_MIXER_HARDWARE) == 0) { //nothing to do } else { |