VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



MP3 ID3 Tag Utility Class

by Mark Biddlecom (2 Submissions)
Category: Sound/MP3
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

** Please comment and vote, even if you hate it :)
This is a relatively simple class for reading from and writing to the ID3 tags in MP3 files. For those who don't know, the ID3 tag stores the information describing the contents of the MP3--that is, title, artist, track number, etc.
I've included a list of every defined genre as an enumeration and provided a function to go from the enumeration to a textual description and visa-versa. Another nice little helper function allows you to rename the file based on a dynamic "style" that can include any of the ID3 fields.
Note, however, that it only works with MP3's using the ID3 version 1 tag. Most of them (i think) do. The newer version 2 tag lets you store more information.
One final thing: I have tested this alot, and I'm sure that the reading functionality works without doing any damage to your MP3's. However, I am very new to MP3's so I really can't guarantee that the writing functions are safe. I tested them on my own files and it seemed all right, but if you're going to use the writeTag method, I have to express caution. Perhaps it would be a good idea to make copies of some of your MP3's to test it on first. :)
**Please vote!**
-Mark

Side Effects
Although I've tested both the read and write behavior extensively, I can't guarantee that the writeTag() method is perfectly safe, as I'm quite new to the world of MP3's, and Visual Basic can be somewhat ambiguous with their documentation at times. Therefore, I recommend that you do some testing of your own before using writeTag.

Rate MP3 ID3 Tag Utility Class

Upload

Download this snippet    Add to My Saved Code

MP3 ID3 Tag Utility Class Comments

No comments have been posted about MP3 ID3 Tag Utility Class. Why not be the first to post a comment about MP3 ID3 Tag Utility Class.

Post your comment

Subject:
Message:
0/1000 characters