1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Hardeep Sidhu 2005-06-25 04:46:25 +00:00
parent 1224d578e8
commit 74d082c038
10 changed files with 107 additions and 29 deletions

View file

@ -862,14 +862,15 @@ static void stop_playing(void)
static void update_playlist(void)
{
int index;
struct trackdata *track;
if (num_tracks_in_memory() > 0)
{
track = get_trackdata(0);
index = playlist_next(track->id3.index);
track->id3.index = index;
struct trackdata *track = get_trackdata(0);
track->id3.index = playlist_next(track->id3.index);
}
else
{
/* End of playlist */
playlist_next(playlist_amount());
}
}
@ -1189,6 +1190,9 @@ static void mpeg_thread(void)
if (new_file(1) < 0) {
DEBUGF("No more files to play\n");
filling = false;
update_playlist();
current_track_counter++;
} else {
/* Make it read more data */
filling = true;