diff options
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 17b4d1591b..9b94be0959 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -58,6 +58,9 @@ | |||
58 | #include "main_menu.h" | 58 | #include "main_menu.h" |
59 | #include "sound_menu.h" | 59 | #include "sound_menu.h" |
60 | #include "database.h" | 60 | #include "database.h" |
61 | #if CONFIG_CODEC == SWCODEC | ||
62 | #include "eq_menu.h" | ||
63 | #endif | ||
61 | 64 | ||
62 | static int context; | 65 | static int context; |
63 | static char* selected_file = NULL; | 66 | static char* selected_file = NULL; |
@@ -537,7 +540,11 @@ static int onplay_callback(int key, int menu) | |||
537 | 540 | ||
538 | int onplay(char* file, int attr, int from) | 541 | int onplay(char* file, int attr, int from) |
539 | { | 542 | { |
540 | struct menu_item items[8]; /* increase this if you add entries! */ | 543 | #if CONFIG_CODEC == SWCODEC |
544 | struct menu_item items[10]; /* increase this if you add entries! */ | ||
545 | #else | ||
546 | struct menu_item items[8]; | ||
547 | #endif | ||
541 | int m, i=0, result; | 548 | int m, i=0, result; |
542 | #ifdef HAVE_LCD_COLOR | 549 | #ifdef HAVE_LCD_COLOR |
543 | char *suffix; | 550 | char *suffix; |
@@ -641,6 +648,19 @@ int onplay(char* file, int attr, int from) | |||
641 | i++; | 648 | i++; |
642 | } | 649 | } |
643 | 650 | ||
651 | #if CONFIG_CODEC == SWCODEC | ||
652 | /* Equalizer menu items */ | ||
653 | if (context == CONTEXT_WPS) | ||
654 | { | ||
655 | items[i].desc = ID2P(LANG_EQUALIZER_GRAPHICAL); | ||
656 | items[i].function = eq_menu_graphical; | ||
657 | i++; | ||
658 | items[i].desc = ID2P(LANG_EQUALIZER_BROWSE); | ||
659 | items[i].function = eq_browse_presets; | ||
660 | i++; | ||
661 | } | ||
662 | #endif | ||
663 | |||
644 | /* DIY menu handling, since we want to exit after selection */ | 664 | /* DIY menu handling, since we want to exit after selection */ |
645 | if (i) | 665 | if (i) |
646 | { | 666 | { |