Search code examples
c#javaaudioaiff

Any libraries that can parse ID3 chunks from aiff files?


I am learning about the AIFF format and according to wiki these files can contain an ID3 chunk. But most of tools I have tried so far do not seem to support aiff files. Are there any libraries (preferably java or C#) capable of parsing/reading ID3 chunks within aiff files?


Solution

  • Taglib# will do this. It's a .NET wrapped version of the taglib library (which supports reading AIFF tags). It's maintained by the developers of the Banshee Media Player:

    http://download.banshee.fm/taglib-sharp/

    If you want to read more on Taglib in general, here's the TagLib site: http://developer.kde.org/~wheeler/taglib.html

    I took a file in iTunes, converted it to AIFF, placed it in my root C:\ folder and renamed it to Sample.aif. Here's the code I used to read it:

    TagLib.File file = TagLib.File.Create(@"C:\Sample.aif");
    string album = file.Tag.Album;
    string title = file.Tag.Title;
    

    Seems to work just fine, TagLib reports that it is an ID3v2 tag.