As part of the "Make a Mod in an Evening" festival which was held here today, you may be interested in a new module in the maxmods SVN repository :
BaH.TagLibIt supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack and TrueAudio files.... amongst others.
Sample output from the included example :
******************** "Pink Floyd - 03 Time.mp3" ********************
-- TAG --
title - "03 Time"
artist - "Pink Floyd"
album - "Dark Side Of The Moon"
year - "0"
comment - ""
track - "3"
genre - "Psychedelic Rock"
-- AUDIO --
bitrate - 128
sample rate - 44100
channels - 2
length - 7:05
Only the generic API has been implemented for now, which provides the basic information as above.
Currently tested on Windows and Mac.
License is MPL.
<edit>
NOTE : This requires the lastest SVN-version of BlitzMax, since it uses some of the new Unicode conversion functions.
(At some point I will also be converting all of my own-module unicode functions to use these "official" ones instead, but I'll probably hold off until we get a 1.32 release)</edit>
As usual, comments, critique and suggestions welcome.
Enjoy.
:o)