summaryrefslogtreecommitdiff
path: root/apps/sound_menu.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-02-06 13:47:21 +0000
committerJens Arnold <amiconn@rockbox.org>2005-02-06 13:47:21 +0000
commit59eb461f8255b636800c120d7640d10d6a15e175 (patch)
treeaaa4d5275e6b617f6d8091eeefae897609b20e3c /apps/sound_menu.c
parent541e9f6581a0bf60d5221e6942e3e5dfed5c0ade (diff)
Player: volume/balance/treble/bass handling improved. (1) Linear mapping of percent to dB for volume, like on all other units. (2) Bug fix: Limit the prescale compensation to +18 dB final volume. (3) Architectural fix: app code doesn't need to additionally set volume in order to activate a changed balance setting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5817 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r--apps/sound_menu.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c
index 33bb80faa1..f08ee35525 100644
--- a/apps/sound_menu.c
+++ b/apps/sound_menu.c
@@ -135,13 +135,8 @@ bool set_sound(const char* string,
return true;
break;
}
- if (changed) {
+ if (changed)
mpeg_sound_set(setting, *variable);
-#if CONFIG_HWCODEC == MAS3507D
- if(setting == SOUND_BALANCE)
- mpeg_sound_set(SOUND_VOLUME, global_settings.volume);
-#endif
- }
}
lcd_stop_scroll();
return false;