• 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
kExtAudioFileProperty_AudioFile property invalid on 10.4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kExtAudioFileProperty_AudioFile property invalid on 10.4?


  • Subject: kExtAudioFileProperty_AudioFile property invalid on 10.4?
  • From: "Stephen F. Booth" <email@hidden>
  • Date: Mon, 7 Apr 2008 13:15:27 -0700

Hello all,

I've run into a 10.4 specific problem and I'm not sure where my mistake is. I'm trying to set the magic cookie data on an ExtAudioFile after modifying the underlying AudioConverter (bitrate, vbr, etc). I'm doing this using the following approach:

1) Get the AudioConverter from the ExtAudioFile (kExtAudioFileProperty_AudioConverter)
2) If it exists, set the relevant properties (bitrate, etc)
3) Notify the ExtAudioFile of the changes (kExtAudioFileProperty_ConverterConfig)
3) Get the magic cookie data from the audio converter (kAudioConverterCompressionMagicCookie)
4) If the format has magic cookie data, attempt to set it on the underlying AudioFileID (kExtAudioFileProperty_AudioFile) using kAudioFilePropertyMagicCookieData


On Leopard, this approach works. On Tiger, attempting to get the kExtAudioFileProperty_AudioFile results in kExtAudioFileError_InvalidProperty (-66151).

My code is loosely based on the UseAC-AF example, specifically WriteCookie(). In my case I am using ExtAudioFile, not AudioFile, so I'm not certain if the magic cookie data will be pulled in automatically (the docs don't say one way or another).

So my two questions:
a) Is there a reason why kExtAudioFileProperty_AudioFile fails on Tiger? I couldn't find anything indicating it is 10.5-only.
b) Is my code logically broken- is it even necessary to set the cookie in this way using ExtAudioFile?


Thanks,
Stephen
_______________________________________________
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


  • Follow-Ups:
    • Re: kExtAudioFileProperty_AudioFile property invalid on 10.4?
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Coreaudio-api Digest, Vol 5, Issue 130
  • Next by Date: Re: How to add an Audio Unit to Kalimba?
  • Previous by thread: Re: Coreaudio-api Digest, Vol 5, Issue 130
  • Next by thread: Re: kExtAudioFileProperty_AudioFile property invalid on 10.4?
  • Index(es):
    • Date
    • Thread