Advertisement
C_Volume2 Sound/MP3 #78252

MP3 ID3 Tag Utility Class

** 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

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine