summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-06-24 22:33:42 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-06-24 22:33:42 +0000
commit22c1a8e1d97c3fd078067f4e1d2444b3499bd869 (patch)
tree8ed0062ffe2d4b6ff7744dce9862f67efa90836f
parent04daef17a1d180c68888c29d11a1b9087e9ace32 (diff)
downloadrockbox-22c1a8e1d97c3fd078067f4e1d2444b3499bd869.tar.gz
rockbox-22c1a8e1d97c3fd078067f4e1d2444b3499bd869.zip
Added sound settings to the WPS context menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6857 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/onplay.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 25b7d204e2..dbb2ba42b9 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -52,6 +52,7 @@
52#include "icons.h" 52#include "icons.h"
53#endif 53#endif
54#include "main_menu.h" 54#include "main_menu.h"
55#include "sound_menu.h"
55 56
56static int context; 57static int context;
57static char* selected_file = NULL; 58static char* selected_file = NULL;
@@ -520,6 +521,13 @@ int onplay(char* file, int attr, int from)
520 selected_file = file; 521 selected_file = file;
521 selected_file_attr = attr; 522 selected_file_attr = attr;
522 523
524 if (context == CONTEXT_WPS)
525 {
526 items[i].desc = ID2P(LANG_SOUND_SETTINGS);
527 items[i].function = sound_menu;
528 i++;
529 }
530
523 if (context == CONTEXT_WPS || 531 if (context == CONTEXT_WPS ||
524 context == CONTEXT_TREE || 532 context == CONTEXT_TREE ||
525 context == CONTEXT_ID3DB) 533 context == CONTEXT_ID3DB)
@@ -527,15 +535,15 @@ int onplay(char* file, int attr, int from)
527 items[i].desc = ID2P(LANG_PLAYLIST); 535 items[i].desc = ID2P(LANG_PLAYLIST);
528 items[i].function = playlist_options; 536 items[i].function = playlist_options;
529 i++; 537 i++;
530
531 if ((audio_status() & AUDIO_STATUS_PLAY))
532 {
533 items[i].desc = ID2P(LANG_BOOKMARK_MENU);
534 items[i].function = bookmark_menu;
535 i++;
536 }
537 } 538 }
538 539
540 if (context == CONTEXT_WPS)
541 {
542 items[i].desc = ID2P(LANG_BOOKMARK_MENU);
543 items[i].function = bookmark_menu;
544 i++;
545 }
546
539 if (file) 547 if (file)
540 { 548 {
541 if (context == CONTEXT_WPS) 549 if (context == CONTEXT_WPS)