TagLib Win32/Visual Studio 2005 (MSC) Port

Brief description of TagLib:

TagLib is a library for reading and editing the meta-data of several popular audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC files as well as MPC.

TagLib is distributed under the GNU Lesser General Public License (i.e. LGPL). Essentially that means that it may be used in proprietary applications, but if TagLib itself is disributed then the sources (for TagLib, not the application using it) must be included in the distribution medium.

TagLib homepage: http://developer.kde.org/~wheeler/TagLib.html

I didn't find any "official" port of TagLib but I googled up some modified source files (author unknown) which did make TagLib compile under Win32 using MSVC, but the library was unstable and had some other errors. So I copypasted most Win32-related macros from the port and spent a day making it work for me.

Here's the list of bigfixes and modifications I made:

  1. Built-in UNICODE conversion routines were crashing, so I replaced them with Windows conversion functions (controlled by DBG_USE_WIN32_STRINGCONVERSION macro).
  2. ID3v2 comments are always written as UTF16. The library was always trying to write them as Latin1. Controlled by DBG_ID3V2_FORCEUTFCOMMENT macro.
  3. ID3v1 fields are embedded in ANSI charset instead of Latin1. This may be a violation of the standard (I'm not sure), but this is how all other apps do and expect.
  4. Fixes some problems which were present in the original port, including binary file access mode. Character types are changed to char and wchar_t.

Note 1: The port has been tested with embedding ID3v1 and ID3v2 tags only so far.

Note 2 (added 2009/07): Since version 1.5, TagLib officially supports Windows, but I didn't check if it is GCC or MSVC and whether it uses my patch or not. You might be interested in trying the newer official version first.

The library is distributed under terms of GNU Lesser General Public License 2.1 or higher, at your option.

Download Win32 Port of TagLib

Get taglib-1.4-with-Win32-port-by-SG-20080102.tar.bz2 taglib-1.4-with-Win32-port-by-SG-20080102.tar.bz2 (331 Kb) [5020 d/l] - source code.

Go to Start page
© Sergey A. Galin, 1998-2022http://sageshome.net/oss/taglib-win32.ph...>>
Time: 0.011s · TagLib: 12165/12359 Total: 2556425/2836369