ExtAudioFileWrite to m4a/aac failing on dual-core devices (ipad 2, iphone 4s)
问题 I wrote a loop to encode pcm audio data generated by my app to aac using Extended Audio File Services. The encoding takes place in a background thread synchronously, and not in real-time. The encoding works flawlessly on ipad 1 and iphone 3gs/4 for both ios 4 and 5. However, for dual-core devices (iphone 4s, ipad 2) the third call to ExtAudioFileWrite crashes the encoding thread with no stack trace and no error code. Here is the code in question: The data formats AudioStreamBasicDescription