C# bindings for TagLib 1.4. Tested on Windows/MSVC2005

Brian Kerrick Nickel brian.nickel at gmail.com
Fri May 26 11:50:28 CEST 2006


Antti,

A while ago, I made an extensive binding of specific features for the Muine
music player here: http://www.public.asu.edu/~bnickel/SharpTagger/

This library is a little more robust than the C bindings allow for,
providing things like "string [] Artists" rather than "string Artist". It
also provides other items like total tracks, disk# in set, disk title, album
cover, etc. Unfortunately, it also leaks quite a bit of memory but if you
can work around its shortcomings, it has write support and provides examples
of how to extend certain features.

I think the best idea overall would be a full port of TagLib to C#, as it
could take advantage of .NET's built in libraries for data structures and
unicode. I have some prior work on this I could share, but I'm an
organizational disaster and never really devised a systematic way of working
on it. (A goal of mine for this summer.)

Best of luck,
Brian Nickel

On 5/25/06, Antti Sykäri <jsykari at cc.hut.fi> wrote:
>
> Hi,
>
> I'm writing a music player in C# but couldn't find a good C# library
> for reading id3v2 tags, so I wrote an initial version of C# bindings
> for TagLib. It uses the C interface and writing tags is not yet
> supported.  It should be straightforward to add but I decided to get
> some sleep instead. Also Unicode doesn't quite work yet - I assume that
> my wrapper thinks it's getting ISO-8859-1/ASCII from the file when it
> actually gets UTF8 encoded data. But otherwise it seems to work ;)
>
> I used Visual Studio 2005 on Windows XP (Express should work as well)
> and Stefan Gehn's MSVC port of TagLib
> (http://metz.gehn.net/files/taglib-snapshot-win32.zip), which I
> augmented with a slightly modified tag_c.cpp. It is available at:
>
> http://jsykari.lucid.fi/soft/TagLib/taglib-1.4.0-win32-with-c-bindings.zip
>
> The C# bindings are at:
>
> http://jsykari.lucid.fi/soft/TagLib/TagLib.cs
>
> Perhaps someone finds it useful.
>
> -Antti
>
> --
> - I still say that private enterprise is acceptable at a village level,
> providing it is strictly controlled by the party.
> - We must not let petty bourgeois aspirations taint socialist pedagogy.
> Reform is the enemy of revolution.
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20060526/2aef0bcc/attachment.html 


More information about the taglib-devel mailing list