Re: Interrupted by SIRI before registering interruption callback.
Re: Interrupted by SIRI before registering interruption callback.
- Subject: Re: Interrupted by SIRI before registering interruption callback.
- From: Anthony Myatt <email@hidden>
- Date: Wed, 29 Oct 2014 11:14:41 +1100
Hello Beinan,
I haven’t tested this, but I suspect that when you call “ [[AVAudioSession sharedInstance] setActive:YES error:&error] “, that it would return NO and ‘error’ would contain the code AVAudioSessionErrorCodeSiriIsRecording.
Regards,
Anthony
> On 29 Oct 2014, at 6:28 am, Beinan Li <email@hidden> wrote:
>
> Hello CoreAudio:
>
> My app can be interrupted by SIRI before registering an interruption notification using AVAudioSession. The route-change notification is not registered at the time either.
>
> The app needs to tell the difference between waking up from SIRI's interruption
> and something else. So I need an indicator or notification related to SIRI.
>
> According to Xcode doc, there is only an error code: AVAudioSessionErrorCodeSiriIsRecording related to SIRI in the AudioSession support. And I don't even know how to retrieve it.
>
> Is there a way get more info on the SIRI status at runtime?
>
> Thanks,
> Beinan
>
> _______________________________________________
> 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