aboutsummaryrefslogtreecommitdiffstats
path: root/src/normalize.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-06-03 19:25:25 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-06-03 19:25:25 +0000
commita6fecd6c05b07bd5238bbace2098105e9e1e8c66 (patch)
treeb85e269da129c9d4554e85ef190ddc1e121279a6 /src/normalize.c
parentd67737bc6499545e2a372b732a578ebc28128cc2 (diff)
downloadmpd-a6fecd6c05b07bd5238bbace2098105e9e1e8c66.tar.gz
mpd-a6fecd6c05b07bd5238bbace2098105e9e1e8c66.tar.xz
mpd-a6fecd6c05b07bd5238bbace2098105e9e1e8c66.zip
Making some bool options more consistent.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6468 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/normalize.c')
-rw-r--r--src/normalize.c8
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);