• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting or modifying the audio file info dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Problem with TremoloUnit example and Component Manager
  • Next by Date: How to use the SampleAudioDriver
  • Previous by thread: Re: Assert Failure for AUListenerAddParameter
  • Next by thread: How to use the SampleAudioDriver
  • Index(es):
    • Date
    • Thread