Re: iOS8: AudioOutputUnitStart() always fails after rejecting a phone call
Re: iOS8: AudioOutputUnitStart() always fails after rejecting a phone call
- Subject: Re: iOS8: AudioOutputUnitStart() always fails after rejecting a phone call
- From: Beinan Li <email@hidden>
- Date: Mon, 19 Jan 2015 17:03:37 -0500
Thanks. I found some clues.
Just under AmbientSound and iOS8 devices,
1. If I put a sleep(2); before the AudioOutputUnitStart() call, then the audio will restore normally. And 2 is an empirical number, 1 would be too short, and 3 seems to work the same way as 2.
2. If the first call to AudioOutputUnitStart() fails, there is just no use to wait and retry.
This looks scary because I found no docs explaining the differences in interruption handling "timing" between iOS versions. And the number feels completely random.
Does anyone have any pointers?