b_baggins
8th April 2002, 05:44
Hi There,
Im writing a 'front end' for Winamp in VB which displays album covers and a few other things (source availble upon request).
Anyway today i started using a reference called the ID3Com 1.0 type library which enables me to do stuff like:
-------------------------------------
Dim id3tag As New ID3ComTag
id3tag.Link (file.path) '----- Read id3 tag
msgbox id3t.Genre 'display mp3 file genre
--------------------------
Anway the above code works but it returns a number (which ive since found out relates to a genre table (ie- 0 is blues, 1 is classic rock etc.., which i can work out OK) but the problem is that it nearly always returns a value of 255 which is not in the table.
If i go in to Winamp and get the file info on the same file, it seems to be able to read the Genre tags OK, but my app (using the ID3comtag) cannot.
Im thinking this may be a version problem or something, but if anyone can shed some light or perhaps recommend another way of doing this im all ears.
Why i can get this info from Winamps API i dont know....
Thanks!
BB
flame_bilbo@hotmail.com
bilbo@bilbosworld.com
:weird:
Im writing a 'front end' for Winamp in VB which displays album covers and a few other things (source availble upon request).
Anyway today i started using a reference called the ID3Com 1.0 type library which enables me to do stuff like:
-------------------------------------
Dim id3tag As New ID3ComTag
id3tag.Link (file.path) '----- Read id3 tag
msgbox id3t.Genre 'display mp3 file genre
--------------------------
Anway the above code works but it returns a number (which ive since found out relates to a genre table (ie- 0 is blues, 1 is classic rock etc.., which i can work out OK) but the problem is that it nearly always returns a value of 255 which is not in the table.
If i go in to Winamp and get the file info on the same file, it seems to be able to read the Genre tags OK, but my app (using the ID3comtag) cannot.
Im thinking this may be a version problem or something, but if anyone can shed some light or perhaps recommend another way of doing this im all ears.
Why i can get this info from Winamps API i dont know....
Thanks!
BB
flame_bilbo@hotmail.com
bilbo@bilbosworld.com
:weird: