• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Audio setup is extremely slow on iPhone 6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: iOS AudioUnit Setting Room size and surround sound
  • Next by Date: Re: does CoreAudio respect the server plugin driver properties?
  • Previous by thread: iOS AudioUnit Setting Room size and surround sound
  • Next by thread: Re: does CoreAudio respect the server plugin driver properties?
  • Index(es):
    • Date
    • Thread