Rockbox General > Rockbox General Discussion

Track titles in playlists

<< < (2/3) > >>

saratoga:
You can't read any of the file (tag or otherwise) until it has been buffered.  You can't random access files like on a PC, they're streamed in blocks roughly the size of the audio buffer (usually between a few hundred KB up to perhaps 55MB on a handful of devices with a lot of RAM).  So depending on the device and the bitrate you might be able to see the tags of the next file, but often not beyond that. 

Edit:  you may not realize this, but playlists aren't just lists of files that a user can show.  They're actually used to control what is streamed when the compressed audio buffer runs low.  Thats why everything from the database to the file browser always generates one when you start playback.  Theres no way to get the Nth file without first passing through the N-1 file.

chrisjj:

--- Quote from: saratoga on January 06, 2014, 08:04:45 PM ---You can't read any of the file (tag or otherwise) until it has been buffered.
--- End quote ---

An app can read the tag without buffering the whole file. I presume that's how the RB 2006 patch operated. Sadly since the SourceForge RB seems to have been wiped for some reason, we can't check the code.


--- Quote from: saratoga on January 06, 2014, 08:04:45 PM ---playlists aren't just lists of files that a user can show.  ... Theres no way to get the Nth file without first passing through the N-1 file.
--- End quote ---

Makes you wonder how RB manages to play a one-file playlist, doesn't it? :)

saratoga:
I don't think that patch you linked has anything to do with what you're suggesting. 

chrisjj:
What that patch does is display tracks as metadata-derived names instead of raw filenames. This is what every modern DAP OF I have seen does, and is very much what I'm suggesting.

saratoga:
Maybe I was unclear before, but the database can absolutely do that. 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version