Setting or modifying the audio file info dictionary
Setting or modifying the audio file info dictionary
- Subject: Setting or modifying the audio file info dictionary
- From: William Bates <email@hidden>
- Date: Tue, 30 Dec 2008 18:49:16 -0600
I can read an audio file's info dictionary (metadata) with no problem.
I need to modify the entries.
I can do this on CAF, AIFF, and other "chunky" formats. In fact, in
place.
But, on compressed formats, (acc, mp4, mp3) the dictionary seems read-
only.
(This despite the fact that the property returns "is writable".)
I know other apps such as iTunes effectively rewrite the file to add
metadata.
But, I get property errors setting the dictionary on both existing
files, and freshly-created ones.
(1) Is there a list of formats for which it works?
(2) Is there a clever way to include the info dict when re-encoding to
MP4, AAC, etc.?
Here is the base code snippet:
CFDictionaryRef dict;
propertySize = sizeof(CFDictionaryRef);
err = AudioFileSetProperty(audioFile,
kAudioFilePropertyInfoDictionary, propertySize, &dict);
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden