Making some bool options more consistent.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6468 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user