Audio setup is extremely slow on iPhone 6
Audio setup is extremely slow on iPhone 6
- Subject: Audio setup is extremely slow on iPhone 6
- From: Dave Fernandes <email@hidden>
- Date: Mon, 03 Nov 2014 15:28:32 -0500
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden