• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: can I use 2 audiosession at the same instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >can I use 2 audiosession at the same instance (From: Sanoj Nambi <email@hidden>)

  • Prev by Date: can I use 2 audiosession at the same instance
  • Next by Date: AU instrument multiple instantiation issues (threading?)
  • Previous by thread: can I use 2 audiosession at the same instance
  • Next by thread: AU instrument multiple instantiation issues (threading?)
  • Index(es):
    • Date
    • Thread