Introduction
First, I would like to give credit to Dean Thomas for the code that I used to get this project started, from his article. I did fix a bug in the aforementioned code, that was causing the tag to be ignored by media player and winamp. (i.e. he was not writing the "TAG
" keyword to the ID3 block). It was minor and easy to fix though.
In any case, this project was done to meet a need that I have had. Whenever I rip CDs or download them from the web (oh my...), I always take the time to name the file in a way that is meaningful to me (i.e. "Artist - Song Title.MP3") but media player, winamp and most popular MP3 players require more. They require the ID3 tag to contain the information as well. It is not always convenient or desirable to pull the information from the web, so I decided to write an app that utilizes the information from the filename to populate the ID3 tag.
How It Works
Here is how it works:
- Name your MP3 file in the proper form. (e.g. "Adele - Lovesong.MP3")
- Drag and drop the file(s) onto the dialog.
That's it! The app will automatically populate the ID3 tag using the filename. Currently, the app only populates the "artist"' and the "song title" field(s). The code contains hooks for populating other fields, but I don't really care about them for my purposes.
I hope that this application is useful.
The source code for MFC, C++ application is included, with project file for Visual Studio 2008.
Reference