aboutsummaryrefslogtreecommitdiffstats
path: root/src/replay_gain_config.c
diff options
context:
space:
mode:
authorDaniel Seuthe <daniel+mpd@seuthe.org>2010-05-30 17:05:43 +0200
committerMax Kellermann <max@duempel.org>2010-05-30 17:06:08 +0200
commite8310211e216a1de0b4e856496633966d106b831 (patch)
treea117c252f846b944a73a85f3f8c3299f0e7eb594 /src/replay_gain_config.c
parent3709b9aa11328c50dff9f7742ce8b5ef967d5d4d (diff)
downloadmpd-e8310211e216a1de0b4e856496633966d106b831.tar.gz
mpd-e8310211e216a1de0b4e856496633966d106b831.tar.xz
mpd-e8310211e216a1de0b4e856496633966d106b831.zip
filter/replay_gain: added option "replaygain_limit"
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 2ef39a4b7..f82725e90 100644
--- a/src/replay_gain_config.c
+++ b/src/replay_gain_config.c
@@ -37,8 +37,11 @@ static const char *const replay_gain_mode_names[] = {
enum replay_gain_mode replay_gain_mode = REPLAY_GAIN_OFF;
+const bool DEFAULT_REPLAYGAIN_LIMIT = true;
+
float replay_gain_preamp = 1.0;
float replay_gain_missing_preamp = 1.0;
+bool replay_gain_limit;
const char *
replay_gain_get_mode_string(void)
@@ -129,6 +132,8 @@ void replay_gain_global_init(void)
replay_gain_missing_preamp = pow(10, f / 20.0);
}
+
+ replay_gain_limit = config_get_bool(CONF_REPLAYGAIN_LIMIT, DEFAULT_REPLAYGAIN_LIMIT);
}
enum replay_gain_mode replay_gain_get_real_mode(void)