diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2002-11-05 08:42:57 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2002-11-05 08:42:57 +0000 |
commit | 03a8ff9f42ca22bd52d5e276f9426c81d2bd0f5b (patch) | |
tree | abd1d502fbd7523a9dd6d6abdfd401436cacd3e3 /src/plugin_xmms | |
parent | 3379a1748feb440c6b6292d89a5b076482bb77ff (diff) | |
download | flac-03a8ff9f42ca22bd52d5e276f9426c81d2bd0f5b.tar.gz |
fix clipping setting in conjunction with hard limiter
Diffstat (limited to 'src/plugin_xmms')
-rw-r--r-- | src/plugin_xmms/plugin.c | 2 |
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); } } } |