aboutsummaryrefslogtreecommitdiffstats
path: root/src/replayGain.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-06-25 14:34:40 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-06-25 14:34:40 +0000
commit5a2f854914cfb41be0ad9b7fa1eba4e43c2d5dc8 (patch)
tree96a7239e064b265ba9ee33150b494c43e1ab637b /src/replayGain.c
parentf66b834f8fa642e42de3f305ec968cc0cbd23857 (diff)
downloadmpd-5a2f854914cfb41be0ad9b7fa1eba4e43c2d5dc8.tar.gz
mpd-5a2f854914cfb41be0ad9b7fa1eba4e43c2d5dc8.tar.xz
mpd-5a2f854914cfb41be0ad9b7fa1eba4e43c2d5dc8.zip
replayGain: adding DEBUG messages when computing scale
git-svn-id: https://svn.musicpd.org/mpd/trunk@6658 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/replayGain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/replayGain.c b/src/replayGain.c
index 7c20919b8..ce9d48085 100644
--- a/src/replayGain.c
+++ b/src/replayGain.c
@@ -120,10 +120,14 @@ void doReplayGain(ReplayGainInfo * info, char *buffer, int bufferSize,
if (info->scale < 0) {
switch (replayGainState) {
case REPLAYGAIN_TRACK:
+ DEBUG("computing ReplayGain track scale with gain %f, "
+ "peak %f\n", info->trackGain, info->trackPeak);
info->scale = computeReplayGainScale(info->trackGain,
info->trackPeak);
break;
default:
+ DEBUG("computing ReplayGain album scale with gain %f, "
+ "peak %f\n", info->albumGain, info->albumPeak);
info->scale = computeReplayGainScale(info->albumGain,
info->albumPeak);
break;