Rockbox Development > Starting Development and Compiling
Playing a file based on id3 info
(1/1)
mschneider:
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: ---struct id3
mp3entry *id3 = audio_current_track();
--- End code ---
Is that going to grab the information for the stopped track, or will I have to do some sort of bookmark?
bascule:
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.
--- End quote ---
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?
mschneider:
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.
Navigation
[0] Message Index
Go to full version