summaryrefslogtreecommitdiffstats
path: root/apps/dsp.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-03-03 07:23:25 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-03-03 07:23:25 +0000
commit708f5508adfdeb5763a5fb918488e83e20324437 (patch)
tree408594dcecdbb49dcf367419e56d2288a0cfe142 /apps/dsp.c
parentf96c254b7696a12da5f9d168a2cdae6746aa23ee (diff)
downloadrockbox-708f5508adfdeb5763a5fb918488e83e20324437.tar.gz
rockbox-708f5508adfdeb5763a5fb918488e83e20324437.zip
Fix peak handling in replaygain (FS#11981). This bug was introduced with r29388 and is caused by calling convert_gain() for peak values. This results in very low output volume if 'Prevent Clipping' is enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29509 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.c')
-rw-r--r--apps/dsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dsp.c b/apps/dsp.c
index c462fc37a6..5910504122 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -1485,12 +1485,12 @@ intptr_t dsp_configure(struct dsp_config *dsp, int setting, intptr_t value)
case DSP_SET_TRACK_PEAK:
if (dsp == &AUDIO_DSP)
- dsp_set_gain_var(&track_peak, convert_gain(value));
+ dsp_set_gain_var(&track_peak, value);
break;
case DSP_SET_ALBUM_PEAK:
if (dsp == &AUDIO_DSP)
- dsp_set_gain_var(&album_peak, convert_gain(value));
+ dsp_set_gain_var(&album_peak, value);
break;
default: