From 84808afcd92c85f6d9f434aa93f5b92c98548f1c Mon Sep 17 00:00:00 2001 From: Andreas Claesson Date: Wed, 25 May 2005 02:15:38 +0000 Subject: New resampling code, change of resolution in doReplayGain and some cleanup. git-svn-id: https://svn.musicpd.org/mpd/branches/ancl@3285 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/replayGain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/replayGain.c') diff --git a/src/replayGain.c b/src/replayGain.c index aac057668..d0de774a0 100644 --- a/src/replayGain.c +++ b/src/replayGain.c @@ -134,8 +134,9 @@ void doReplayGain(ReplayGainInfo * info, char * buffer, int bufferSize, } samples = bufferSize >> 2; - iScale = info->scale * 256; - shift = 8; + /* 64 steps is enough - gives 0.13db resolution at 0dB and 2.5dB at -25dB*/ + iScale = info->scale * 64; + shift = 6; /* handle negative or zero scale */ -- cgit v1.2.3