[Flac-dev] How do you set the Application ID value in an an Application Metadata Block?
christineangelli at gmail.com
Wed Apr 21 12:50:49 PDT 2010
I have written an application that uses the FLAC C API to insert an
application metadata block into a FLAC file. Everything appears to be
working, but I have one nagging issue.
I have used all my best google and source code searching skills and I cannot
for the life of me find an API call to set the Application ID value in my
metadata object. I am currently working around the issue by setting the
value manually, but that hurts my good coding sense.
(Note: I have already registered my ID.)
Is there an API call to set the application metadata ID?
Here's what I'm doing:
myFlacMetadata = FLAC__metadata_object_new
myMetadata, myMetadataSize, FALSE);
/* this is a BIG FAT NO NO, but I cannot for the life of me find any way
in the FLAC API to set */
/* the Application block application ID, therefore I am going rogue and
setting it explicitly */
myFlacMetadata->data.application.id = 'M';
myFlacMetadata->data.application.id = 'Y';
myFlacMetadata->data.application.id = 'I';
myFlacMetadata->data.application.id = 'D';
Thanks for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Flac-dev