Re: Bluetooth one way audio with iPhone OS 3.1
Re: Bluetooth one way audio with iPhone OS 3.1
- Subject: Re: Bluetooth one way audio with iPhone OS 3.1
- From: Langtian Du <email@hidden>
- Date: Wed, 28 Oct 2009 09:09:01 -0700 (PDT)
Hi Bill
Thanks for the response.
When I tried to reproduce, I noticed, there is a big delay when I switch from bluetooth to speaker. So I wonder if it could relate to the audio queue code.
I tried to reset and restart audio queue after we switch to speaker from Bluetooth. I added this code on the audio route change callback, it seems improves the delay when I switch from Bluetooth to speaker. But I still did not get audio after I switch back to bluetooth.
One more test, if I complete stop/destroy the audio queue and re-create a new one, bluetooth works again.
I noticed the speaker and bluetooth uses different sample rate. Could this cause any issue? When I pass data to audio queue with different sample rate, would coreaudio so the resample?
Any hints?
Thanks
Langtian
On Oct 27, 2009, at 7:17 PM, William Stewart <email@hidden> wrote:
Hi Langtian
We're not sure what exactly is going on. Could you file a bug report and attach some code we could use to reproduce the problem?
Thanks
Bill
From: Langtian Du <email@hidden>
Date: October 27, 2009 10:53:00 AM PDT
To: email@hidden
Subject: Bluetooth one way audio with iPhone OS 3.1
I have play_and_record audio session, it works well with build in speaker & microphone.
I enabled kAudioSessionProperty_OverrideCategoryEnableBluetoothInput to support
bluetooth audio.
If I start the audio session (audioqueue) with kAudioSessionProperty_OverrideCategoryEnableBluetoothInput
enabled directly, it also works on both bluetooth input and bluetooth output.
However, if during the session, I enable the audio route to speaker for a few seconds (either with
kAudioSessionProperty_OverrideCategoryEnableBluetoothInput enabled or not), then I disable the
route to speaker, set kAudioSessionProperty_OverrideCategoryEnableBluetoothInput again, I
only get bluetooth input/MIC, but I can't hear anything on the bluetooth speaker. I checked the audio
queue, which is working. (It has the interrupt yo get data)
I verified all the audio hardware information, like route is Bluetooth, sample rate is 8000, category is play-and_recorder,
actually they all same as the previous working one.
Any one see this issue? Is this a iPhone OS bug? Or where is my problem?
Thanks,
Langtian
_______________________________________________
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