aboutsummaryrefslogtreecommitdiffstats
path: root/src/replay_gain_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/replay_gain_config.c')
-rw-r--r--src/replay_gain_config.c5
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;