Hi,<br><br>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. <br><br>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.<br>
<br>(Note: I have already registered my ID.)<br><br>Is there an API call to set the application metadata ID?<br><br>Here's what I'm doing:<br><font size="1"> myFlacMetadata = FLAC__metadata_object_new (FLAC__METADATA_TYPE_APPLICATION);<br>
FLAC__metadata_object_application_set_data (uitsFlacMetadata, myMetadata, myMetadataSize, FALSE);<br><br> /* this is a BIG FAT NO NO, but I cannot for the life of me find any way in the FLAC API to set */<br> /* the Application block application ID, therefore I am going rogue and setting it explicitly */<br>
<br> myFlacMetadata-><a href="http://data.application.id">data.application.id</a>[0] = 'M';<br> myFlacMetadata-><a href="http://data.application.id">data.application.id</a>[1] = 'Y';<br> myFlacMetadata-><a href="http://data.application.id">data.application.id</a>[2] = 'I';<br>
myFlacMetadata-><a href="http://data.application.id">data.application.id</a>[3] = 'D';<br></font><br><br>Thanks for any help.<br><br>-chris<br>