Re: bluetooth headset and recording
Re: bluetooth headset and recording
- Subject: Re: bluetooth headset and recording
- From: Olivier Destrebecq <email@hidden>
- Date: Wed, 8 Feb 2006 15:30:49 -0500
As you said the problem is with setting the bit rate to 32, if i comment those line out, then it works. The problem is that i need to allow the user for some control over the "bit rate". If I open whackedTV and try to record from the bluetooth headset it only allow for 8kb and 16kb.
I'm looking at how whacked TV does it, but it seems to delegate everything to quicktime, i would like to handle it myself and just give a warning to the user if the selected bit rate he selected won't work with the device in use.
On Feb 8, 2006, at 3:20 PM, Doug Wyatt wrote:
On Feb 8, 2006, at 11:53, Olivier Destrebecq wrote:
I'm trying to record audio coming through the input. In this particular instance the input is a bluetooth headset (this code works with imic, isight, line in and some other USB input). I'm am recording straight to AAC, maybe that would be the problem, but i would assume that it should not cause any problem.
yes, the way CAAudioFileRecorder works, it's buffering up the input and encoding/saving the file on a work thread
Also note that i'm setting an encoding bit rate for the converter to 32000. This fails when called on the bluetooth input. How can i know what value are legal to pass in there? Would that be the cause of the problem?
The source sample rate for Bluetooth is probably 8000 Hz; it could be that 32 kbps is too high a bit rate for such a low sample rate. I'll let others elaborate on that.
The crash looks like it's in the AAC encoder. If you want to send me a full crash report (especially need to see library load addresses, and the ppc registers may help) we can investigate that.
Doug
-- Doug Wyatt Core Audio, Apple
|
_______________________________________________
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