Version 1.0.1, 2013-04-11
Selecting iLBC format now correctly sets sample rate to 8k.
(Full Revision History)
Mac OS X v10.7 or later, Xcode 4.6.1, iOS 5.0 SDK
Demonstrates using the Audio Converter APIs to convert from a PCM audio format to a compressed format.
Four encoding formats may be chosen in the UI along with different sample rates for the produced output.caf file. AAC encoding using Audio Converter requires 4.1 or later and a hardware capable device such as the iPhone 3GS. If run on a device which does not support hardware assisted AAC encoding, the AAC encoding choice will be dimmed.
Interruption handling during processing is also demonstrated. Hardware assisted encoding requires specific interruption handling since the codec state may change due to the interruption.
All the relevant audio specific code is in the file AudioConverterFileConvert.cpp.
Also see the companion to this sample - iPhoneExtAudioFileConvertTest.
© 2013 Apple Inc. All Rights Reserved. (Last updated: 2013-04-11)