diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-08-29 10:09:34 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-08-29 10:09:34 +0000 |
commit | 4ecd9716bd47961ca7377de690eaeb740ef7f947 (patch) | |
tree | e3a5244b1a3597f5eb50518a07dc3a6b292aee3d | |
parent | ce2142ec5b8252803f81d0a8c8e7c710252cd613 (diff) | |
download | rockbox-4ecd9716bd47961ca7377de690eaeb740ef7f947.tar.gz rockbox-4ecd9716bd47961ca7377de690eaeb740ef7f947.zip |
Toggle low latency mode when entering/exiting the eq menu to make the
changes more instant. should fix FS#7640
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14506 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/menus/eq_menu.c | 3 | ||||
-rw-r--r-- | apps/menus/sound_menu.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c index 8058fa10aa..883c55d830 100644 --- a/apps/menus/eq_menu.c +++ b/apps/menus/eq_menu.c | |||
@@ -635,7 +635,8 @@ MENUITEM_FUNCTION(eq_save, 0, ID2P(LANG_EQUALIZER_SAVE), | |||
635 | MENUITEM_FUNCTION(eq_browse, 0, ID2P(LANG_EQUALIZER_BROWSE), | 635 | MENUITEM_FUNCTION(eq_browse, 0, ID2P(LANG_EQUALIZER_BROWSE), |
636 | (int(*)(void))eq_browse_presets, NULL, NULL, Icon_NOICON); | 636 | (int(*)(void))eq_browse_presets, NULL, NULL, Icon_NOICON); |
637 | 637 | ||
638 | MAKE_MENU(equalizer_menu, ID2P(LANG_EQUALIZER), NULL, Icon_EQ, | 638 | int soundmenu_callback(int action,const struct menu_item_ex *this_item); |
639 | MAKE_MENU(equalizer_menu, ID2P(LANG_EQUALIZER), soundmenu_callback, Icon_EQ, | ||
639 | &eq_enable, &eq_graphical, &eq_precut, &gain_menu, | 640 | &eq_enable, &eq_graphical, &eq_precut, &gain_menu, |
640 | &advanced_eq_menu_, &eq_save, &eq_browse); | 641 | &advanced_eq_menu_, &eq_save, &eq_browse); |
641 | 642 | ||
diff --git a/apps/menus/sound_menu.c b/apps/menus/sound_menu.c index 704ceeb7f6..4d6a3e2095 100644 --- a/apps/menus/sound_menu.c +++ b/apps/menus/sound_menu.c | |||
@@ -36,7 +36,9 @@ | |||
36 | /***********************************/ | 36 | /***********************************/ |
37 | /* SOUND MENU */ | 37 | /* SOUND MENU */ |
38 | #if CONFIG_CODEC == SWCODEC | 38 | #if CONFIG_CODEC == SWCODEC |
39 | int soundmenu_callback(int action,const struct menu_item_ex *this_item) | 39 | /* This callback is also used in the eq menu to toggle low latency mode. |
40 | So, remember this if the callback is used for anything other than the togging */ | ||
41 | int soundmenu_callback(int action, const struct menu_item_ex *this_item) | ||
40 | { | 42 | { |
41 | (void)this_item; | 43 | (void)this_item; |
42 | switch (action) | 44 | switch (action) |