summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2005-06-25 04:46:25 +0000
committerHardeep Sidhu <dyp@pobox.com>2005-06-25 04:46:25 +0000
commit74d082c03892ae551cf4a72bb27af91fe8e1ed28 (patch)
tree227ede22869e6aa2e4f919a38cc3638ee0d76cfe /apps/onplay.c
parent1224d578e8ef250cacc86ba3e97408446867baa6 (diff)
downloadrockbox-74d082c03892ae551cf4a72bb27af91fe8e1ed28.zip
rockbox-74d082c03892ae551cf4a72bb27af91fe8e1ed28.tar.gz
rockbox-74d082c03892ae551cf4a72bb27af91fe8e1ed28.tar.bz2
rockbox-74d082c03892ae551cf4a72bb27af91fe8e1ed28.tar.xz
Added new shuffle repeat mode that reshuffles playlist before repeating. Also added new shuffled insert mode that randomly inserts selected track(s) somewhere between current track and end of playlist.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6861 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index dbb2ba4..d1b5285 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -244,8 +244,8 @@ static bool view_playlist(void)
/* Sub-menu for playlist options */
static bool playlist_options(void)
{
- struct menu_item items[11];
- struct playlist_args args[11]; /* increase these 2 if you add entries! */
+ struct menu_item items[12];
+ struct playlist_args args[12]; /* increase these 2 if you add entries! */
int m, i=0, pstart=0, result;
bool ret = false;
@@ -296,6 +296,11 @@ static bool playlist_options(void)
args[i].queue = false;
i++;
+ items[i].desc = ID2P(LANG_INSERT_SHUFFLED);
+ args[i].position = PLAYLIST_INSERT_SHUFFLED;
+ args[i].queue = false;
+ i++;
+
items[i].desc = ID2P(LANG_QUEUE);
args[i].position = PLAYLIST_INSERT;
args[i].queue = true;