Thanks Anthony.

Tried setting the inputGain, but it still had the same effect if I set it
the same for both scenarios. I could try using the default inputGain when
headphones unplugged and increase when plugged in, but this seems a bit of
a hack and unreliable since the default inputGain is likely different among
different devices.

This can't or shouldn't be a difficult task since other apps seem to handle
it fine.

Scott


On Wed, Apr 6, 2016 at 9:08 PM Anthony Myatt <[email protected]> wrote:

> Hi Scott,
>
> You could try setting the input gain for the audio session when the route
> changes.
>
> In my experience though the inbuilt mic has a settable gain and the
> headphone mic does not.
>
> [[AVAudioSession sharedInstance] setInputGain:1.0 error:&err]
>
> Kind regards,
>
> Anthony Myatt
> ------------------------
> Sent from my iPhone
>
> > On 7 Apr 2016, at 6:58 AM, Scott McAlister <[email protected]>
> wrote:
> >
> > I am creating an app that uses iPhone bottom mic for recording with or
> > without headphones plugged in. My issue is that the volume for
> > recording with headphones plugged in is much lower than recording with
> > headphones not plugged in.
> >
> > Is there a setting/configuration I need to add for when headphones are
> > plugged in, so that recording is same volume as without headphones
> >
> > Thanks in advance,
> > Scott
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Coreaudio-api mailing list      ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> >
> https://lists.apple.com/mailman/options/coreaudio-api/me%40anthonymyatt.net
> >
> > This email sent to [email protected]
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to