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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Playing a file based on id3 info
« previous next »
  • Print
Pages: [1]

Author Topic: Playing a file based on id3 info  (Read 1338 times)

Offline mschneider

  • Member
  • *
  • Posts: 235
Playing a file based on id3 info
« on: January 06, 2008, 08:07:50 PM »
I've been looking through the source and I can't seem to find a function that will play a file based on it's id3 information. I assume this is possible because of the database but i'm not sure how. I've grabbed the id3 information for a track but now I'm looking to play it. Is this possible?

Also, if I stop playback and then do:
Code: [Select]
struct id3
    mp3entry *id3 = audio_current_track();

Is that going to grab the information for the stopped track, or will I have to do some sort of bookmark?
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Playing a file based on id3 info
« Reply #1 on: January 07, 2008, 04:04:14 AM »
I'm not sure what you are trying to achieve here.

Quote from: mschneider on January 06, 2008, 08:07:50 PM
...a function that will play a file based on it's id3 information.

That sentence does not really mean anything.

If you are trying to find a file based on ID3 then that would only be possible if you have some way of linking ID3 info with the physical filepath of the file, which of course is exactly what the Database does.

However, if you are trying to play a file that you have just extracted the ID3 info from then don't you already know the file location, because you have just accessed it to get the data?
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline mschneider

  • Member
  • *
  • Posts: 235
Re: Playing a file based on id3 info
« Reply #2 on: January 07, 2008, 02:00:15 PM »
Yea what I said was not very clear. I have the ID3 information indexed from searching tagcache, and I would like to find the file based on that and then play it.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Playing a file based on id3 info
 

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

Page created in 0.064 seconds with 15 queries.