summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-08-29 10:09:34 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-08-29 10:09:34 +0000
commit4ecd9716bd47961ca7377de690eaeb740ef7f947 (patch)
treee3a5244b1a3597f5eb50518a07dc3a6b292aee3d
parentce2142ec5b8252803f81d0a8c8e7c710252cd613 (diff)
downloadrockbox-4ecd9716bd47961ca7377de690eaeb740ef7f947.zip
rockbox-4ecd9716bd47961ca7377de690eaeb740ef7f947.tar.gz
rockbox-4ecd9716bd47961ca7377de690eaeb740ef7f947.tar.bz2
rockbox-4ecd9716bd47961ca7377de690eaeb740ef7f947.tar.xz
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.c3
-rw-r--r--apps/menus/sound_menu.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c
index 8058fa1..883c55d 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),
MENUITEM_FUNCTION(eq_browse, 0, ID2P(LANG_EQUALIZER_BROWSE),
(int(*)(void))eq_browse_presets, NULL, NULL, Icon_NOICON);
-MAKE_MENU(equalizer_menu, ID2P(LANG_EQUALIZER), NULL, Icon_EQ,
+int soundmenu_callback(int action,const struct menu_item_ex *this_item);
+MAKE_MENU(equalizer_menu, ID2P(LANG_EQUALIZER), soundmenu_callback, Icon_EQ,
&eq_enable, &eq_graphical, &eq_precut, &gain_menu,
&advanced_eq_menu_, &eq_save, &eq_browse);
diff --git a/apps/menus/sound_menu.c b/apps/menus/sound_menu.c
index 704ceeb..4d6a3e2 100644
--- a/apps/menus/sound_menu.c
+++ b/apps/menus/sound_menu.c
@@ -36,7 +36,9 @@
/***********************************/
/* SOUND MENU */
#if CONFIG_CODEC == SWCODEC
-int soundmenu_callback(int action,const struct menu_item_ex *this_item)
+/* This callback is also used in the eq menu to toggle low latency mode.
+ So, remember this if the callback is used for anything other than the togging */
+int soundmenu_callback(int action, const struct menu_item_ex *this_item)
{
(void)this_item;
switch (action)