diff options
author | Max Kellermann <max@duempel.org> | 2009-01-17 20:23:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-17 20:23:33 +0100 |
commit | a1a97cc048a443eb71944848592b9827991600fd (patch) | |
tree | e3bfbf5bd38a851d2823b99a00f4abba9ba1db43 /src/normalize.c | |
parent | 4d472c265ed0b3f7f61ee624c01c8ef319db7c99 (diff) | |
download | mpd-a1a97cc048a443eb71944848592b9827991600fd.tar.gz mpd-a1a97cc048a443eb71944848592b9827991600fd.tar.xz mpd-a1a97cc048a443eb71944848592b9827991600fd.zip |
conf: use config_get_bool() instead of getBoolConfigParam()
Diffstat (limited to '')
-rw-r--r-- | src/normalize.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/normalize.c b/src/normalize.c index da655a648..60da15e75 100644 --- a/src/normalize.c +++ b/src/normalize.c @@ -27,9 +27,8 @@ int normalizationEnabled; void initNormalization(void) { - normalizationEnabled = getBoolConfigParam(CONF_VOLUME_NORMALIZATION, 1); - if (normalizationEnabled == CONF_BOOL_UNSET) - normalizationEnabled = DEFAULT_VOLUME_NORMALIZATION; + normalizationEnabled = config_get_bool(CONF_VOLUME_NORMALIZATION, + DEFAULT_VOLUME_NORMALIZATION); if (normalizationEnabled) CompressCfg(0, ANTICLIP, TARGET, GAINMAX, GAINSMOOTH, BUCKETS); |