Re: Bluetooth IO problems (aurioTouch sample app)
Re: Bluetooth IO problems (aurioTouch sample app)
- Subject: Re: Bluetooth IO problems (aurioTouch sample app)
- From: Rick Cohen <email@hidden>
- Date: Thu, 17 Feb 2011 11:08:48 -0500
Here is an update on my questions.
I tried pairing a BlueAnt Z9i Bluetooth Headset with the iPad, with an
iPod Touch, and with an iPhone. I was only able to pair with the
iPhone. This is apparantly because the iPad and the iPod Touch do not
support the Bluetooth Hands Free Profile (HFP). I confirmed this at
the following URL:
http://support.apple.com/kb/ht3647
I also read this message on the CoreAudio mailing list archive
http://lists.apple.com/archives/coreaudio-api/2009/Nov/msg00163.html
The author is asking if the Bluetooth A2DP profile is supported in
CoreAudio. I have confirmed that the Belkin AirCast Auto device
supports A2DP (and it does pair with the iPad and the iPod Touch).
The output is working fine, but the input is not working for me even
after setting using the
kAudioSessionProperty_OverrideCategoryEnableBluetoothInput property.
As the previous author noted, this sentence appears in the Audio
Session Programming Guide (Last updated: 2010-11-15): "Starting in iOS
3.1, you can configure the recording categories to allow input from a
paired Bluetooth device that supports HFP. For a code example, see
“Supporting Bluetooth Audio Input.”"
My question: as an iPad developer, am I able to access Bluetooth audio input?
- Rick Cohen
P.S. I was apparently incorrect when I stated yesterday that the
Belkin device was functioning properly as an audio input device for
commercial apps on my friend's iPhone. We tested more carefully and
were unable to verify the Bluetooth input.
On Wed, Feb 16, 2011 at 11:47 AM, Rick Cohen <email@hidden> wrote:
> Hello folks,
>
> I have acquired a Belkin "AirCast Auto" Bluetooth Car Kit, and wanted
> to make this work with my iPad app, which uses
> kAudioSessionCategory_PlayAndRecord.
>
> I set the requisite property,
> kAudioSessionProperty_OverrideCategoryEnableBluetoothInput, but audio
> output is still being routed to my iPad's internal speaker, and the
> internal mic is still being used for input.
>
> I checked the kAudioSessionProperty_AudioRoute property, and it is
> returning "SpeakerAndMicrophone" whether the Bluetooth device is
> connected or not. If I plug in a wired headset, the property changes
> to "HeadsetInOut", and changes back to "SpeakerAndMicrophone" when I
> disconnect the wired headset.
>
> When the Bluetooth device is connected, I can see the extra input
> selection widget in the iPod app next to the volume slider, and the
> Bluetooth device is selected.
>
> Next I tried the same experiment with the aurioTouch sample app. I
> got the same results (the Bluetooth IO was not working).
>
> I am building with the iOS 4.2 SDK, and the deployment target is also
> set to 4.2, and the iPad has 4.2.1 (8C148) installed.
>
> This same Belkin unit was working for my friend's iPhone as a
> Bluetooth input/output device on some commercial apps.
>
> Any clues as to what I'm doing wrong? I tried setting the
> kAudioSessionProperty_OverrideCategoryEnableBluetoothInput property in
> various places (e.g. before and after making the session active,
> before and after initializing RemoteIO, etc.).
>
> Thanks in advance for any and all help!
>
> - Rick Cohen
>
_______________________________________________
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