Name: Anonymous 2010-08-30 18:13
http://en.wikipedia.org/wiki/ID3
First, I don't want to use existing libraries because all I need to extract is the genre.
What's the best way to extract the genre on a mp3 file?
I got mine working by reading chunks of bytes until it found the string "TCON".
The problem is when there is no genre tag ("TCON"). It scans the whole mp3 file and will take a lot of time.
Another is when there is a picture embedded on the file, how can I skip it?
Also, i'm planning to use this on a mobile phone so speed really does matter.
First, I don't want to use existing libraries because all I need to extract is the genre.
What's the best way to extract the genre on a mp3 file?
I got mine working by reading chunks of bytes until it found the string "TCON".
The problem is when there is no genre tag ("TCON"). It scans the whole mp3 file and will take a lot of time.
Another is when there is a picture embedded on the file, how can I skip it?
Also, i'm planning to use this on a mobile phone so speed really does matter.