diff options
Diffstat (limited to 'src/normalize.c')
-rw-r--r-- | src/normalize.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/normalize.c b/src/normalize.c index fb62e7a4e..504656c1d 100644 --- a/src/normalize.c +++ b/src/normalize.c @@ -22,13 +22,17 @@ #include <stdlib.h> +#define DEFAULT_VOLUME_NORMALIZATION 0 + int normalizationEnabled; void initNormalization(void) { normalizationEnabled = getBoolConfigParam(CONF_VOLUME_NORMALIZATION); - if (normalizationEnabled == -1) normalizationEnabled = 0; - else if (normalizationEnabled < 0) exit(EXIT_FAILURE); + if (normalizationEnabled == -1) + normalizationEnabled = DEFAULT_VOLUME_NORMALIZATION; + else if (normalizationEnabled < 0) + exit(EXIT_FAILURE); if (normalizationEnabled) CompressCfg(0, ANTICLIP, TARGET, GAINMAX, GAINSMOOTH, BUCKETS); |