Old 7th August 2002, 10:11   #1
Junior Member
Join Date: Aug 2002
Posts: 3
Using the WinAmp Tag-Editor over API

Is it possible, to use WinAmp's internal Tageditor over Code (API) to change the Tag of MP3 files??
I want to write an edited Tag from an own Application over WinAmp into the original MP3-File...possible or impossible??

Thanks for answering...
123-Freeman-321 is offline   Reply With Quote
Old 7th August 2002, 16:30   #2
Senior Member
Gourou's Avatar
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
while that way may seem easier, I dont believe they wrote in API's to do such a thing, as always, if they have, they havent told us.
you could simply rewrite the tag yourself, ID3v1 tags are very, very simple to rewrite, ID3v2 tags are a bit harder, but if your patient, you could prolly knock it out without much of a problem.
Gourou is offline   Reply With Quote
Old 8th August 2002, 00:36   #3
Junior Member
Join Date: Jun 2002
Posts: 6
Tag is the work of input plugin, so if you want to control the tag editor you have to contol the input plugin. You have a lot of libraries to manage tag. Retrieve the name of the file and create your own tag editor.
shrom is offline   Reply With Quote
Old 8th August 2002, 07:23   #4
Junior Member
Join Date: Aug 2002
Location: Lienden, Netherlands
Posts: 4
Hello, for Visual Basic, this is all the source code you need:

' Create a new code module and paste this code into it:
Option Explicit

Public Type ID3Tag
Header As String * 3
SongTitle As String * 30
Artist As String * 30
Album As String * 30
Year As String * 4
Comment As String * 30
Genre As Byte
End Type

Public Function GetID3Tag(FileName As String, Tag As ID3Tag) _
As Boolean

'Pass an variable declared as type ID3Tag to Tag Parameter
'and read its member data after the function returns (assuming
'the function returns true)

On Error GoTo GetID3TagError

Dim TempTag As ID3Tag
Dim FileNum As Long

If Dir(FileName) = "" Then
GetID3Tag = False
Exit Function
End If

FileNum = FreeFile

Open FileName For Binary As FileNum
Get FileNum, LOF(1) - 127, TempTag
Close FileNum

If TempTag.Header <> "TAG" Then
GetID3Tag = False
Tag = TempTag
GetID3Tag = True
End If

Exit Function

Close FileNum
GetID3Tag = False
End Function

Stuiterballetje is offline   Reply With Quote
Old 8th August 2002, 07:39   #5
Junior Member
Join Date: Aug 2002
Posts: 3
Trying to make my Own

I just write Code to get the ID3V1 & ID3V2 Tag.
The V2 is really harder to get, and to write will not be very easy...but i will try it.

But the idea over WinAmp was not bad?!?
123-Freeman-321 is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump