--- Joshua Kwan <[EMAIL PROTECTED]> wrote: > OK. Well, I found the C interface a little bit easier to understand, > so > I ended up using that instead of continuing to try to figure out the > C++ > interface. > > The one problem I have is that the values in block->data. > vorbis_comment.comments tend to have trailing junk. For example:
that's correct; vorbis comments are not c strings and the API does not expose them as such (you could argue that it should I guess). they are a length plus a buffer in UTF-8. if you want a C string in a specific charset you must convert it (see the xmms plugin for examples of how to do that). if you just want to pretend that it's ascii, you have to char str[entry->length+1]; memcpy(str, entry->entry); str[entry->length] = '\0'; Josh __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Flac-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/flac-dev
