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: Sasikumar JP <email@hidden>
- Date: Tue, 06 Dec 2011 06:55:44 +0530
Zach,
My application is a streaming audio player application. User can listen to audio even the application is in background.
If the interruption happens while the application is in background, after the interruption ends, Shouldn't my application activate the AudioSession and start the playback?. Should my application wait to become active before it resume the playback.
Regards
Sasikumar JP
>> 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
On Mon, Dec 5, 2011 at 10:34 PM, Dean Reyburn
<email@hidden> wrote:
My app does audi analysis and I got that error also. 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.
Hope that helps,
-Dean
On Dec 5, 2011, at 12:00 AM, Sasikumar JP wrote:
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