• 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
kAudioFormatProperty_HardwareCodecCapabilities is a property error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kAudioFormatProperty_HardwareCodecCapabilities is a property error?


  • Subject: kAudioFormatProperty_HardwareCodecCapabilities is a property error?
  • From: Evan Olcott <email@hidden>
  • Date: Thu, 1 Apr 2010 14:47:08 -0500

Why does this code return a 'prop' error?
(The error occurs in the simulator, iPhone 3G and iPhone 3GS running OS 3.1.x)

-----

AudioClassDescription requestedCodecs[2] = {
	{ kAudioEncoderComponentType, kAudioFormatMPEG4AAC, kAppleHardwareAudioCodecManufacturer },
	{ kAudioEncoderComponentType, kAudioFormatMPEG4AAC, kAppleSoftwareAudioCodecManufacturer } };

UInt32 successfulCodecs = 0, size = sizeof(successfulCodecs);
OSStatus result = AudioFormatGetProperty(kAudioFormatProperty_HardwareCodecCapabilities,
						sizeof(requestedCodecs),
						requestedCodecs,
						&size,
						&successfulCodecs);


< result = 'prop' >

----

This is (almost) exactly the code found in the discussion for kAudioFormatProperty_HardwareCodecCapabilities found in AudioFormat.h.

All I'm looking for is to find a reliable way to check if the device supports AAC encoding via the ExtAudioFile API before I present the UI for it...

Ev
Senior Software Architect
Audiofile Engineering

http://www.audiofile-engineering.com/








 _______________________________________________
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: auol and DAWs
  • Next by Date: Re: building for 64-bit Logic
  • Previous by thread: Re: auol and DAWs
  • Next by thread: Re: ExtAudioFileDispose blocking
  • Index(es):
    • Date
    • Thread