|
-
Jan 23rd, 2000, 08:21 PM
#1
Thread Starter
So Unbanned
at the end of every mp3 file is it's TAG tells you various info about the mp3...
how would I go about getting this info?
it looks something like this:
---
TAGFireStarter Prodigy Fat o' The land! 1999Digital's a FireStarter!
---
Thanks
------------------
DiGiTaIErRoR
-
Jan 23rd, 2000, 10:36 PM
#2
Tags are saved as last 128 bytes in the MP3 file.
Code:
Dim strPath As String
Dim intFFN As Integer
Dim strBuffer As String
Dim lngRec As Long
Dim strTitle As String
Dim strArtist As String
Dim strAlbum As String
Dim strMsg As String
strPath = "C:\MyMp.mp3"
intFFN = FreeFile
Open strPath For Binary As intFFN
lngRec = LOF(intFFN) - 128
strBuffer = Space(128)
Get #intFFN, lngRec, strBuffer
Close #intFFN
strTitle = Mid(strBuffer, InStr(strBuffer, "TAG") + 3, 30)
strArtist = Trim(Mid(strBuffer, 31, 30))
strAlbum = Trim(Mid(strBuffer, 61, 30))
strMsg = "Title: " & strTitle & vbCrLf
strMsg = strMsg & "Artist: " & strArtist & vbCrLf
strMsg = strMsg & "Album: " & strAlbum
MsgBox strMsg
------------------
Serge
Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
-
Jan 24th, 2000, 01:35 AM
#3
Junior Member
just wondering is there a way that u can edit and save the mp3 tag thru a vb app???
------------------
-
Jan 24th, 2000, 04:20 AM
#4
PowerPoster
-
Jan 26th, 2000, 04:29 AM
#5
serge that code doens't work when i run it
-
Jan 26th, 2000, 04:31 PM
#6
Junior Member
maybe his code doesnt work exactly, but he told you all you need to know to make your own, just read the file, and experiment till you get it right
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|