Re: Using MediaPlayback session category in a recording app: Ignore everything I just said
Re: Using MediaPlayback session category in a recording app: Ignore everything I just said
- Subject: Re: Using MediaPlayback session category in a recording app: Ignore everything I just said
- From: Michael Tyson <email@hidden>
- Date: Thu, 09 Aug 2012 12:01:11 +0100
Wow - this is great information, Zach; thanks so much.
I would never have thought to try tweaking with order of setting other session properties.
Cheers!
On 9 Aug 2012, at 04:56, Zachary Kulis <email@hidden> wrote:
> One thing I've noticed when using the kAudioSessionProperty_OverrideCategoryMixWithOthers override is that it actually matters when the override is applied. For example, I encountered difficulties with the override when I set it *prior* to setting the kAudioSessionProperty_OverrideCategoryDefaultToSpeaker override. Try setting the kAudioSessionProperty_OverrideCategoryMixWithOthers override as the last step in your audio session initialization/configuration procedure (I also found that it's good to reapply these overrides whenever the audio route changes).
>
> Incidentally, the problem that I encountered was that MPMusicPlayerController would interrupt my audio session whenever I started playback (despite having the override set); however, setting kAudioSessionProperty_OverrideCategoryMixWithOthers after all other initialization resolved the problem.
>
> Best,
> Zach Kulis
_______________________________________________
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