Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract ID3 tag from Mp3 file

Status
Not open for further replies.

801119

Programmer
Apr 10, 2000
311
SE
Hey all!!

How do I extract the ID3 tag - title artist album year and comment - from an Mp3 file and pass it on to a struct ??
Anyone whom can give me a quick hint or source code?

Thanks...!!

Martin G Broman
mgb_svea@hotmail.com

DWS - Alpha Whitin Dead Wolf Society
 
Thanks....!!

Martin G Broman
mgb_svea@hotmail.com

DWS - Alpha Whitin Dead Wolf Society
 
Dim fNum As Integer
Dim sTagIdent As String * 3
Dim sTitle As String * 30
Dim sArtist As String * 30
Dim sAlbum As String * 30
Dim sYear As String * 4
Dim sComment As String * 30
fNum = FreeFile

Open "D:\Folder\1.mp3" For Binary As fNum

Seek #fNum, LOF(fNum) - 127
Get #fNum, , sTagIdent
If sTagIdent = "TAG" Then
Get #fNum, , sTitle
Get #fNum, , sArtist
Get #fNum, , sAlbum
Get #fNum, , sYear
Get #fNum, , sComment
End If
Close #fNum
MsgBox sTitle & "," & sArtist & "," & sAlbum & "," & sYear & "," & sComment -
radium.gif

Looking Toward The Future
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top