Re: can I use 2 audiosession at the same instance
Re: can I use 2 audiosession at the same instance
- Subject: Re: can I use 2 audiosession at the same instance
- From: Aran Mulholland <email@hidden>
- Date: Thu, 22 Jul 2010 09:08:46 +1000
When in category kAudioSessionCategory_MediaPlayBack audio playback
comes through the speaker at the bottom of the phone, however when
using kAudioSessionCategory_PlayAndRecord the iPhone speaker output is
redirected to the phone speaker (that you put your ear next to during
a phone conversation) the reason for this is that if you are taking
input from a microphone and playing out a speaker that are right next
to each other you could get feedback occuring if you want to play and
record simultaneously. You can use the audio session to redirect the
output however, so that if headphones are not plugged in the default
output is the bottom speaker
Check out the Audio Session programming guide (which is essential
reading if you want to do iPhone audio) here
http://developer.apple.com/iphone/library/documentation/audio/conceptual/AudioSessionProgrammingGuide/Cookbook/Cookbook.html
Pay attention to the section entitled "Redirecting Output Audio"
aran
On Thu, Jul 22, 2010 at 8:47 AM, Sanoj Nambi <email@hidden> wrote:
> Hey all,
> I want to play a music and record vocal at the same time(simultaneously).In
> order to achieve this ,I have used audiocategory
> as kAudioSessionCategory_MediaPlayBack for music and then changed it
> to kAudioSessionCategory_PlayAndRecord to record vocal.However when I do
> that the sounds volume gets drastically effected.
> Is there a way to deal with this issue( I know audiosession is a singleton
> class).
> Regards,
> sanoj
>
> _______________________________________________
> 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