summaryrefslogtreecommitdiff
path: root/src/plugin_xmms
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2002-11-05 08:42:57 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2002-11-05 08:42:57 +0000
commit03a8ff9f42ca22bd52d5e276f9426c81d2bd0f5b (patch)
treeabd1d502fbd7523a9dd6d6abdfd401436cacd3e3 /src/plugin_xmms
parent3379a1748feb440c6b6292d89a5b076482bb77ff (diff)
downloadflac-03a8ff9f42ca22bd52d5e276f9426c81d2bd0f5b.tar.gz
fix clipping setting in conjunction with hard limiter
Diffstat (limited to 'src/plugin_xmms')
-rw-r--r--src/plugin_xmms/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin_xmms/plugin.c b/src/plugin_xmms/plugin.c
index 3d26891f..5f5ea67b 100644
--- a/src/plugin_xmms/plugin.c
+++ b/src/plugin_xmms/plugin.c
@@ -496,7 +496,7 @@ void metadata_callback_(const FLAC__FileDecoder *decoder, const FLAC__StreamMeta
double gain, peak;
if(FLAC__replaygain_load_from_vorbiscomment(metadata, flac_cfg.output.replaygain.album_mode, &gain, &peak)) {
file_info_.has_replaygain = true;
- file_info_.replay_scale = FLAC__replaygain_compute_scale_factor(peak, gain, (double)flac_cfg.output.replaygain.preamp, /*prevent_clipping=*/true);
+ file_info_.replay_scale = FLAC__replaygain_compute_scale_factor(peak, gain, (double)flac_cfg.output.replaygain.preamp, /*prevent_clipping=*/!flac_cfg.output.replaygain.hard_limit);
}
}
}