From 74d082c03892ae551cf4a72bb27af91fe8e1ed28 Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Sat, 25 Jun 2005 04:46:25 +0000 Subject: 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 --- apps/onplay.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps/onplay.c') diff --git a/apps/onplay.c b/apps/onplay.c index dbb2ba42b9..d1b5285faa 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; -- cgit v1.2.3