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.tar.gz
rockbox-74d082c03892ae551cf4a72bb27af91fe8e1ed28.zip
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 dbb2ba42b9..d1b5285faa 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -244,8 +244,8 @@ static bool view_playlist(void)
244/* Sub-menu for playlist options */ 244/* Sub-menu for playlist options */
245static bool playlist_options(void) 245static bool playlist_options(void)
246{ 246{
247 struct menu_item items[11]; 247 struct menu_item items[12];
248 struct playlist_args args[11]; /* increase these 2 if you add entries! */ 248 struct playlist_args args[12]; /* increase these 2 if you add entries! */
249 int m, i=0, pstart=0, result; 249 int m, i=0, pstart=0, result;
250 bool ret = false; 250 bool ret = false;
251 251
@@ -296,6 +296,11 @@ static bool playlist_options(void)
296 args[i].queue = false; 296 args[i].queue = false;
297 i++; 297 i++;
298 298
299 items[i].desc = ID2P(LANG_INSERT_SHUFFLED);
300 args[i].position = PLAYLIST_INSERT_SHUFFLED;
301 args[i].queue = false;
302 i++;
303
299 items[i].desc = ID2P(LANG_QUEUE); 304 items[i].desc = ID2P(LANG_QUEUE);
300 args[i].position = PLAYLIST_INSERT; 305 args[i].position = PLAYLIST_INSERT;
301 args[i].queue = true; 306 args[i].queue = true;