Rockbox mail archive
Subject: [PATCH] Multiple playlists.
From: John Pybus (john_at_pybus.org)
First of all, thanks to everyone. Rockbox is fantastic.
My main limitation with the archos firmware was the very poor support for
editing playlists. Full editing of playlists will likely need to wait for
FAT writing support, but what I really want is to add more tracks to a
playlist without stopping the one currently playing.
So here are two patches:
This reorganises the playlist handling -- without making any changes to the
UI. It allows the playlist in memory to contain tracks coming from up to 20
different sources (playlist files or directories).
It's current limitations are that only one source is stored on power-off 
so resume doesn't fully restore the list.
This is a proof of concept patch to tree.c to make use of patch1. If while
playing you use menu + play in the tree view, it adds the selected
playlist/directory to the end of the currently playing list. It's a bit of a
hack so I didn't include it in with the first patch, but I've had enough for
today so I'll submit it as is.
This is already enough for me to line up the next album while one is playing,
without needing to have created a playlist beforehand.
 Currently the first source added to the playlist, although it could
usefully be made the source of the currently playing track.
- text/x-diff attachment: patch1
- text/x-diff attachment: patch2
Page was last modified "Jan 10 2012" The Rockbox Crew