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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Track titles in playlists
« previous next »
  • Print
Pages: [1]

Author Topic: Track titles in playlists  (Read 2167 times)

Offline chrisjj

  • Member
  • *
  • Posts: 273
Track titles in playlists
« on: January 06, 2014, 11:35:56 AM »
Apropos

Quote from: bluebrother on January 05, 2014, 05:06:55 PM
a lot of developers consider Rockbox pretty much feature complete

does RB yet show track titles in (EDIT:) M3U playlists? This fairly basic feature is standard in all the DAPs' manufacture firmware I've seen for the last ten or so years, but I cannot find it in RB.
« Last Edit: January 06, 2014, 06:48:20 PM by chrisjj »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Track titles in playlists
« Reply #1 on: January 06, 2014, 06:45:44 PM »
I think playlists generated dynamically from the database can do this though, since the tags are parsed and stored in the DB you don't need to read the tags. 

From M3U would be hard though, I guess you'd have to check and see if the tags were in the database and show them.  Not sure if anyone has looked at that. 
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Track titles in playlists
« Reply #2 on: January 06, 2014, 06:57:16 PM »
Quote from: saratoga on January 06, 2014, 06:45:44 PM
I think playlists generated dynamically from the database can do this though

I was thinking of file playlists e.g. M3U. Sorry not to say. I have edited the original message to clarify.

Quote from: saratoga on January 06, 2014, 06:45:44 PM
From M3U would be hard though, I guess you'd have to check and see if the tags were in the database and show them.

I think you'd only need to read the tags from the files, with caching.

Quote from: saratoga on January 06, 2014, 06:45:44 PM
Not sure if anyone has looked at that.

I find this was implemented for RB in 2006. But apparently not officially adopted. I wonder why. From what remains of it (which sadly does not include the code - in SourceForge), it looked good.
« Last Edit: January 06, 2014, 07:00:13 PM by chrisjj »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Track titles in playlists
« Reply #3 on: January 06, 2014, 07:18:16 PM »
You can't read them from the files because the tags aren't necessarily available until the file is about to be decoded (because the current file may be large enough to occupy all available buffer memory preventing reading of the next file). 
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Track titles in playlists
« Reply #4 on: January 06, 2014, 07:37:54 PM »
An app can read the tag without reading the entire file.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Track titles in playlists
« Reply #5 on: January 06, 2014, 08:04:45 PM »
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.
« Last Edit: January 06, 2014, 08:08:13 PM by saratoga »
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Track titles in playlists
« Reply #6 on: January 06, 2014, 09:02:21 PM »
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.

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.

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

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Track titles in playlists
« Reply #7 on: January 06, 2014, 09:16:35 PM »
I don't think that patch you linked has anything to do with what you're suggesting. 

Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Track titles in playlists
« Reply #8 on: January 06, 2014, 09:55:39 PM »
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.
« Last Edit: January 06, 2014, 09:58:08 PM by chrisjj »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Track titles in playlists
« Reply #9 on: January 07, 2014, 01:04:05 AM »
Maybe I was unclear before, but the database can absolutely do that. 
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Track titles in playlists
« Reply #10 on: January 07, 2014, 07:06:42 AM »
Quote from: saratoga on January 07, 2014, 01:04:05 AM
the database can absolutely do that.

Not in playlists, AFAICT. Do please correct me if I am wrong.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Track titles in playlists
 

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

Page created in 0.065 seconds with 16 queries.