Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Improving playlist path handling
« previous next »
  • Print
Pages: [1]

Author Topic: Improving playlist path handling  (Read 925 times)

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Improving playlist path handling
« on: June 14, 2012, 04:05:31 PM »
I've taken a quick step in this direction with:  http://gerrit.rockbox.org/r/#/c/270/

But our playlist handling is still not as painless as it should be.  Much of the problem comes from dealing with the ambiguity of mount points over MSC mode.  For instance,

/folder/file.mp3

Can refer can equally well refer to both:

/folder/file.mp3
or
/<microsd1>/folder/file.mp3

since we don't know where the root was for the software that made the playlist.  My patch above just moves the root to be whatever file system the playlist file is on, which is better then right now, but still not perfect. 

The next step would be to have the playlist code search multiple locations to resolve the ambiguity by looking at the file system.  As a start, we could search for files based on the root of each file system, and perhaps based on a few additional folders as the root of the file system (/music might make sense for instance). 

I'm not too familiar with this part of rockbox, but do people think this is practical?  I assume with dircache there would be basically no hit, and even without it usually the disk would be spun up anyway if someone has just clicked on a new playlist, but I'm not 100% sure.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Improving playlist path handling
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.044 seconds with 15 queries.