Re: Audio is not resuming after the phone call
Re: Audio is not resuming after the phone call
- Subject: Re: Audio is not resuming after the phone call
- From: Zachary Kulis <email@hidden>
- Date: Mon, 05 Dec 2011 13:39:15 -0500
You need to make sure that your app is in the foreground before
reactivating the audio session. Occasionally, iOS will call your
audio interruption handler while your app is still in the
background. I've seen this many times, and it can cause serious
problems. The best thing to do is to set a flag when you receive the
interruption ended notification and you're running in the
background. When your app comes back to the foreground, reactive the
audio session at that time.
Zach
My app does audi analysis and I got that error also
about 6 months ago. Apple said the error is a very general error
and iOS's handling of this stuff was poor in iOS 4. They may have
improved it in iOS 5, I'm not sure since I fixed the problem
before iOS 5 was out.
In my case I use AudioUnits and I was accidentally calling
AudioOutputUnitStart() twice after a phone call, the 2nd call
caused -12895.
For instance, if your viewController starts sound recording
in addition to the audioSession stuff doing the same.... that's
what I was doing that caused this. But since the error is so
general, it could be something else related.
Hope that helps,
-Dean
On Dec 5, 2011, at 12:00 AM, Sasikumar JP wrote:
Hi,
I have a stream radio application in appstore. i am
receiving complaint from many users that application's audio
is not resuming after the phone call.
I have registered the interruption listener and when i
receive the interruption begin, i am stopping the AUGraph
and when i receive the end Interruption i am setting the
AudioSession active and starting AUGraph.
More frequently i am getting the following error message, so
i unable to resume the audio playback after the
interruption.
10:11:10.276 <0x3f514ce8> AUIOClient_StartIO failed
(-12985)
AUGraphStart failure error: -12985 FFFFCD47 ˇˇÕG
|| ||| || ||| || ||| ||
||| || ||| || ||| || ||| ||
||| || ||| || |||
Dean Reyburn, RPT
Cedar Springs, Michigan,
49319 USA
Sales & support:
1-888-SOFT-440 (or
616-340-7277) Fax:
616-696-8121
_______________________________________________
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
|
_______________________________________________
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