Re: New AVAudioSession iOS 6 notifications?
Re: New AVAudioSession iOS 6 notifications?
- Subject: Re: New AVAudioSession iOS 6 notifications?
- From: Dean Reyburn <email@hidden>
- Date: Fri, 22 Feb 2013 13:08:27 -0500
Thanks Doug,
So to summarize I guess we should ignore these 4 notifications for now as they are documented but not defined in the headers:
AVAudioSessionDidBeginInterruptionNotification
AVAudioSessionDidEndInterruptionNotification
AVAudioSessionInputDidBecomeAvailableNotification
AVAudioSessionInputDidBecomeUnavailableNotification
We should handle these notifications for iOS 6:
AVAudioSessionInterruptionNotification (userInfo tells you begin or end and if we should resume audio)
AVAudioSessionMediaServicesWereResetNotification (reset all audio from scratch)
Testing AVAudioSessionInterruptionNotification worked perfectly for audio recording interruptions on iPhone 4 with iOS 6.1.
Any suggestions on how to invoke AVAudioSessionMediaServicesWereResetNotification? When would that happen, or is that an error conditions?
Since I only record I don't care about route (should I?) so I ignore this notification:
AVAudioSessionRouteChangeNotification
I was able to merge the new iOS 6 interruptions into my subclassed AVAudioSessionDelegate and use deprecated setDelegate method only if running in iOS 5, and use the new notifications for iOS 6.
Thanks,
-Dean
On Feb 21, 2013, at 7:34 PM, Douglas Scott <email@hidden> wrote:
> The notification system uses AVAudioSessionInterruptionNotification. In the documentation, you will see that a key is provided to tell you whether the interruption is beginning or ending.
>
> -DS
1-888-SOFT-440 or 1-888-763-8440
Reyburn Piano Service, Inc.
http://www.reyburn.com
_______________________________________________
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