Results 1 to 7 of 7

Thread: Accessing MP3 ID3 Tags

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Posts
    78

    Accessing MP3 ID3 Tags

    Does anyone know how to access the ID3 tags? I have been trying to do this for a while off and on but I can't seem to pull the right info from the .mp3 file.

    Thanks

  2. #2
    See http://www.activex.com. There are tons of them.

  3. #3
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Talking here....

    Code:
    Option Explicit
    Private Type TagInfo
        Tag As String * 3
        Songname As String * 30
        artist As String * 30
        album As String * 30
        year As String * 4
        comment As String * 30
        genre As String * 1
    End Type
    
    Private CurrentTag As TagInfo
    
    Public Function GetTagInfo(Filename As String) As String
        
        Open Filename For Binary As #1
        With CurrentTag
            Get #1, FileLen(Filename) - 127, .Tag
            If Not .Tag = "TAG" Then
                GetTagInfo = Filename
                Close #1
                Exit Function
            End If
            Get #1, , .Songname
            Get #1, , .artist
            Get #1, , .album
            Get #1, , .year
            Get #1, , .comment
            Get #1, , .genre
            Close #1
        
             GetTagInfo = RTrim(.artist) & " - " & RTrim(.Songname) & _
                " - " & RTrim(.year)
        
            End With
    End Function
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Posts
    78
    Thanks i'll try this out.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Posts
    78
    Ok that works for getting the tags. Does anyone know how I can save tag information to a mp3 file??

    All help is appreciated.

  6. #6
    Addicted Member
    Join Date
    Jun 2001
    Posts
    183

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Posts
    78
    THANKS!!!!!!!!!!

    That page has everything I wanted to know.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width