aboutsummaryrefslogtreecommitdiffstats
path: root/src/ReplayGainConfig.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ReplayGainConfig.cxx')
-rw-r--r--src/ReplayGainConfig.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/ReplayGainConfig.cxx b/src/ReplayGainConfig.cxx
index c3bbcac3c..b8a907cdc 100644
--- a/src/ReplayGainConfig.cxx
+++ b/src/ReplayGainConfig.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2014 The Music Player Daemon Project
+ * Copyright (C) 2003-2015 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
#include "config.h"
#include "ReplayGainConfig.hxx"
#include "Idle.hxx"
-#include "config/ConfigData.hxx"
+#include "config/Param.hxx"
#include "config/ConfigGlobal.hxx"
#include "system/FatalError.hxx"
@@ -81,7 +81,8 @@ replay_gain_set_mode_string(const char *p)
void replay_gain_global_init(void)
{
- const struct config_param *param = config_get_param(CONF_REPLAYGAIN);
+ const struct config_param *param =
+ config_get_param(ConfigOption::REPLAYGAIN);
if (param != nullptr &&
!replay_gain_set_mode_string(param->value.c_str())) {
@@ -89,7 +90,7 @@ void replay_gain_global_init(void)
param->value.c_str(), param->line);
}
- param = config_get_param(CONF_REPLAYGAIN_PREAMP);
+ param = config_get_param(ConfigOption::REPLAYGAIN_PREAMP);
if (param) {
char *test;
@@ -110,7 +111,7 @@ void replay_gain_global_init(void)
replay_gain_preamp = pow(10, f / 20.0);
}
- param = config_get_param(CONF_REPLAYGAIN_MISSING_PREAMP);
+ param = config_get_param(ConfigOption::REPLAYGAIN_MISSING_PREAMP);
if (param) {
char *test;
@@ -131,7 +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);
+ replay_gain_limit = config_get_bool(ConfigOption::REPLAYGAIN_LIMIT,
+ DEFAULT_REPLAYGAIN_LIMIT);
}
ReplayGainMode