summaryrefslogtreecommitdiffstats
path: root/apps/menus
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-04-26 17:19:16 -0400
committerMichael Sevakis <jethead71@rockbox.org>2012-04-26 17:19:16 -0400
commit0842d7f7e1f123926bc7741c6ecfbcd631a65bea (patch)
tree3030e3bd5e1a322a8601379f2bd61aa71a50fc99 /apps/menus
parent97a535d83c0f057b190c7a82f95297696b25a0df (diff)
downloadrockbox-0842d7f7e1f123926bc7741c6ecfbcd631a65bea.tar.gz
rockbox-0842d7f7e1f123926bc7741c6ecfbcd631a65bea.tar.bz2
rockbox-0842d7f7e1f123926bc7741c6ecfbcd631a65bea.zip
Consolidate compressor settings into a struct.
Doing that makes things cleaner for later on. Change-Id: I4e279aa57ace16a348acc0fc09059592325ec95f
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/sound_menu.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/menus/sound_menu.c b/apps/menus/sound_menu.c
index e93d73b7ed..0817304f8d 100644
--- a/apps/menus/sound_menu.c
+++ b/apps/menus/sound_menu.c
@@ -126,15 +126,20 @@ static int timestretch_callback(int action,const struct menu_item_ex *this_item)
/* compressor submenu */
MENUITEM_SETTING(compressor_threshold,
- &global_settings.compressor_threshold, lowlatency_callback);
+ &global_settings.compressor_settings.threshold,
+ lowlatency_callback);
MENUITEM_SETTING(compressor_gain,
- &global_settings.compressor_makeup_gain, lowlatency_callback);
+ &global_settings.compressor_settings.makeup_gain,
+ lowlatency_callback);
MENUITEM_SETTING(compressor_ratio,
- &global_settings.compressor_ratio, lowlatency_callback);
+ &global_settings.compressor_settings.ratio,
+ lowlatency_callback);
MENUITEM_SETTING(compressor_knee,
- &global_settings.compressor_knee, lowlatency_callback);
+ &global_settings.compressor_settings.knee,
+ lowlatency_callback);
MENUITEM_SETTING(compressor_release,
- &global_settings.compressor_release_time, lowlatency_callback);
+ &global_settings.compressor_settings.release_time,
+ lowlatency_callback);
MAKE_MENU(compressor_menu,ID2P(LANG_COMPRESSOR), NULL, Icon_NOICON,
&compressor_threshold, &compressor_gain, &compressor_ratio,
&compressor_knee, &compressor_release);