I’ve encountered a problem in an app that runs fine on older hardware in both 
iOS 7.1 and 8.1. My setup code for the audio session and remote IO audio unit 
runs almost instantaneously on older iPhones, iPods and iPads, but takes about 
12 seconds on iPhone 6 (iOS 8.1). Specifically, each of the following 4 API 
calls takes about 3 seconds to return:

-[AVAudioSession setPreferredInputNumberOfChannels:error:]
-[AVAudioSession setPreferredIOBufferDuration:error:]
AudioUnitInitialize()
AudioOutputUnitStart()

The audio session has category: AVAudioSessionCategoryPlayAndRecord; options: 
AVAudioSessionCategoryOptionDefaultToSpeaker; and, mode: 
AVAudioSessionModeMeasurement.

Instruments says my app is blocked for 99% of the 12 second startup time. Any 
advice for how else to troubleshoot this?

Thanks,
Dave
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to