summaryrefslogtreecommitdiff
path: root/apps/dsp.c
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2009-06-20 21:13:24 +0000
committerAlexander Levin <al.le@rockbox.org>2009-06-20 21:13:24 +0000
commit8589fcb3e3e0744b208ce5e8099fdf12e46ba9c2 (patch)
treeaac31dccb328366674c0284cba2d9a86ca3dfe4e /apps/dsp.c
parent01bcd2c6121fa0ae1797ef11c02be298574f4fdb (diff)
downloadrockbox-8589fcb3e3e0744b208ce5e8099fdf12e46ba9c2.tar.gz
rockbox-8589fcb3e3e0744b208ce5e8099fdf12e46ba9c2.zip
Merge the "Replaygain Off" option into the replaygain type; eliminate the "On/Off" setting (FS#10356). All WPS tags should work as before.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21414 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.c')
-rw-r--r--apps/dsp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/dsp.c b/apps/dsp.c
index 0bb3ac0748..a760865afb 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -1449,13 +1449,14 @@ void dsp_set_replaygain(void)
1449 1449
1450 new_gain = false; 1450 new_gain = false;
1451 1451
1452 if (global_settings.replaygain || global_settings.replaygain_noclip) 1452 if ((global_settings.replaygain_type != REPLAYGAIN_OFF) ||
1453 global_settings.replaygain_noclip)
1453 { 1454 {
1454 bool track_mode = get_replaygain_mode(track_gain != 0, 1455 bool track_mode = get_replaygain_mode(track_gain != 0,
1455 album_gain != 0) == REPLAYGAIN_TRACK; 1456 album_gain != 0) == REPLAYGAIN_TRACK;
1456 long peak = (track_mode || !album_peak) ? track_peak : album_peak; 1457 long peak = (track_mode || !album_peak) ? track_peak : album_peak;
1457 1458
1458 if (global_settings.replaygain) 1459 if (global_settings.replaygain_type != REPLAYGAIN_OFF)
1459 { 1460 {
1460 gain = (track_mode || !album_gain) ? track_gain : album_gain; 1461 gain = (track_mode || !album_gain) ? track_gain : album_gain;
1461 1462