kAudioFormatProperty_HardwareCodecCapabilities is a property error?
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