iPhoneExtAudioFileConvertTest
| Last Revision: | |
| Build Requirements: | iOS 4.0 SDK |
| Runtime Requirements: | iOS 3.2 or later |
Demonstrates using ExtAudioFile API to convert from one audio format and file type to another.
Four encoding formats may be chosen in the UI along with different sample rates for the produced output.caf file. AAC encoding requires both iPhone OS 3.1 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 ExtAudioFileConvert.cpp.
© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-07-22)