|
-
Mar 1st, 2002, 04:58 PM
#1
Thread Starter
Fanatic Member
1 character = 1byte?
Does 1 character = 1 byte? I'm confusing myself here. I'm working with an ID3 v1 tag. The ID3 info is stored in the last 128 bytes. An example of what I'm doing is below. Basically what I'm asking is if 30 bytes are assigned to the songname does that mean the songname can only be 30 characters? I need to know this so I can set the Maxlength of my textboxes. Anyone know a more efficient way to divide this up? You pretty much have to have 3 bytes for the "TAG", 4bytes for the Year, and 2 bytes for the track. So maybe I just answer my own question! Anyway, would it be best to take bytes away from the comment and add them to the artist & title? Maybe reduce the comments to 10 bytes. Anyone know if there is a standard for this? Thanks
VB Code:
Dim id3Tag As String * 3
Dim Songname As String * 30
Dim Artist As String * 30
Dim Album As String * 30
Dim Year As String * 4
Dim Comment As String * 28
Dim Track As String * 2
Dim Genre As String * 1
-
Mar 1st, 2002, 05:30 PM
#2
Hyperactive Member
ID3 v1 tag is the standard but for your own purposes I suppose you could extend the song name in to the comments although it would not be recognised by other programs.
W#Ć€V€® W¦|| ߀ W¦|| ߀, ÄÑÐ †#€®€ ¦§ ÑÖ†#¦Ñ6 ¥Öµ ©ÄÑ ÐÖ ÄßÖµ† ¦†, §Ö §¦† ßÄ©K, ®€|ÄX ÄÑÐ |€† ¦† #ÄÞÞ€Ñ.
(Whatever will be will be, and there is nothing you can do about it, so sit back, relax and let it happen.)
-
Mar 1st, 2002, 05:34 PM
#3
-
Mar 1st, 2002, 05:35 PM
#4
Thread Starter
Fanatic Member
Standard VS Winamp?
The standard is:
VB Code:
Dim id3Tag As String * 3
Dim Songname As String * 30
Dim Artist As String * 30
Dim Album As String * 30
Dim Year As String * 4
Dim Comment As String * 30
Dim Genre As String * 1
However, in Winamp the version1 tag includes Track #
Did they take away 2 bites from comment to make track #?
-
Mar 1st, 2002, 05:40 PM
#5
-
Mar 1st, 2002, 05:53 PM
#6
Need-a-life Member
Re: Standard VS Winamp?
Originally posted by hipopony66
The standard is:
VB Code:
Dim id3Tag As String * 3
Dim Songname As String * 30
Dim Artist As String * 30
Dim Album As String * 30
Dim Year As String * 4
Dim Comment As String * 30
Dim Genre As String * 1
However, in Winamp the version1 tag includes Track #
Did they take away 2 bites from comment to make track #?
Actually, this is the way I have it:
VB Code:
Public Type ID3v1Tag
Id As String * 3
title As String * 30
Artist As String * 30
Album As String * 30
Year As String * 4
Comment As String * 29
Genre As Integer
Track As Byte
End Type
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Mar 1st, 2002, 11:55 PM
#7
Thread Starter
Fanatic Member
it works?
Does Winamp read the tag correctly even though comment is only 29?
-
Mar 2nd, 2002, 12:27 AM
#8
Frenzied Member
BTW to set the max length of text boxes, set their MaxLength properties.
You just proved that sig advertisements work.
-
Mar 2nd, 2002, 12:45 AM
#9
Need-a-life Member
Re: it works?
Originally posted by hipopony66
Does Winamp read the tag correctly even though comment is only 29?
Yes it does. That's the type variable I've got created, and both (Winamp and my program) can read and write ID3v1 and ID3v2 and they understand each other.
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Mar 2nd, 2002, 12:47 AM
#10
-
Mar 2nd, 2002, 01:50 AM
#11
-
Mar 3rd, 2002, 07:16 PM
#12
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
|