diff options
author | Daniel Seuthe <daniel+mpd@seuthe.org> | 2010-04-25 13:42:23 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-04-25 13:51:58 +0200 |
commit | 92e66e5ab2c6fa56c4a36da4f959f7321749ab8c (patch) | |
tree | 3ed0903b674b9bc9d4954a0a8b1a5c35cc773e4d /src/replay_gain_config.c | |
parent | 54dedef9cf0e85901ac7edaab30e015010603352 (diff) | |
download | mpd-92e66e5ab2c6fa56c4a36da4f959f7321749ab8c.tar.gz mpd-92e66e5ab2c6fa56c4a36da4f959f7321749ab8c.tar.xz mpd-92e66e5ab2c6fa56c4a36da4f959f7321749ab8c.zip |
replay_gain: added mode "auto"
Diffstat (limited to '')
-rw-r--r-- | src/replay_gain_config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/replay_gain_config.c b/src/replay_gain_config.c index 7cb08bba3..3eae9d960 100644 --- a/src/replay_gain_config.c +++ b/src/replay_gain_config.c @@ -43,6 +43,9 @@ const char * replay_gain_get_mode_string(void) { switch (replay_gain_mode) { + case REPLAY_GAIN_AUTO: + return "auto"; + case REPLAY_GAIN_OFF: return "off"; @@ -69,6 +72,8 @@ replay_gain_set_mode_string(const char *p) replay_gain_mode = REPLAY_GAIN_TRACK; else if (strcmp(p, "album") == 0) replay_gain_mode = REPLAY_GAIN_ALBUM; + else if (strcmp(p, "auto") == 0) + replay_gain_mode = REPLAY_GAIN_AUTO; else return false; |