CoreAudio through bluetooth A2DP
CoreAudio through bluetooth A2DP
- Subject: CoreAudio through bluetooth A2DP
- From: Tony Kirke <email@hidden>
- Date: Mon, 25 Mar 2013 20:10:59 -0700
First of all not sure if playing audio through bluetooth A2DP is consider part of "CoreAudio" or not but can't really find the info I'm looking for elsewhere. All of below applies to an iphone/ipad app and not to CoreAudio/Bluetooth on a Mac.
Any help or pointers would be appreciated
An older build of my app on IOS 6 seemed to work fine when it was connected to a bluetooth device. I was using the following code to enable this
UInt32 allowBluetoothInput = 1;
CheckError(
AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryEnableBluetoothInput,
sizeof (allowBluetoothInput), &allowBluetoothInput),
"Cound't set OverrideCategoryEnableBluetoothInput");
}
Obviously this setup appears to be for both input & output audio through bluetooth. Although I primarily want to play audio through bluetooth, this worked fine prior to 6.1.x
However, now I am finding that the hardware sampling rate is getting set to 8khz and this makes audio run in a slowed down fashion since my app is not resampling.
Also if I start up app while iphone "Music" app is playing over the bluetooth connection with relatively good audio quality which seems to be at 44.1khz, my app seems to change the bluetooth sampling rate to degrade this audio too.
How can I take advantage of A2DP profile that Music app seems to be using and have decent audio quality for music?
I tried to force sampling rate to 44.1khz but it didn't work.
Obvious above code is more intended for getting bluetooth microphone input but I can not find info anywhere on how to use A2DP profile from within an audio app
Thanks
_______________________________________________
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