diff options
author | Andreas Claesson <andreas.claesson@gmail.com> | 2005-05-25 02:15:38 +0000 |
---|---|---|
committer | Andreas Claesson <andreas.claesson@gmail.com> | 2005-05-25 02:15:38 +0000 |
commit | 84808afcd92c85f6d9f434aa93f5b92c98548f1c (patch) | |
tree | d9a6b12d549850d1d5f64f81f0a39ea4a1af09c9 /src/replayGain.c | |
parent | 9dd46b801580bd7df7a2027bca0923389615071d (diff) | |
download | mpd-84808afcd92c85f6d9f434aa93f5b92c98548f1c.tar.gz mpd-84808afcd92c85f6d9f434aa93f5b92c98548f1c.tar.xz mpd-84808afcd92c85f6d9f434aa93f5b92c98548f1c.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/replayGain.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |