Re: Input callback only getting called every couple of
Re: Input callback only getting called every couple of
- Subject: Re: Input callback only getting called every couple of
- From: Jeff Moore <email@hidden>
- Date: Mon, 11 Dec 2006 12:50:19 -0800
On Dec 11, 2006, at 7:50 AM, Bill Cunning wrote:
And thanks for the response.
As far as I can tell, my iSight only supports a sample rate of 48K.
So, I'd expect that you'd get a kAudioDeviceUnsupportedFormatError
error trying to set the sample rate to 8K. Did you get an error? If
not, you should file a bug.
No, I got the error and for now changed the code to just set it to
48k,
Which works with no error.
In fact, you might want to do that anyway in the name of being
compatible with lots of input devices rather than just assuming the
rate you want is supported. Very few devices are going to support a
sample rate of 8K these days.
Yup, plan to do it this way, but the isight is actually the first to
not support it that I have run into.
Be that as it may, it's best not to assume things about hardware on X.
I tried to run ComplexPlayThru (most of my code is derived from this
sample and the defaultoutput sample) and it does not work correctly
either, displaying the same problem.
You might want to look at some of the other bits of sample code we
have. For example, the afrecord tool in the AudioFileTools project
records from the input and writes it to a file on the disk.
<snip>
The problem lies with my application not getting fed data fast enough
from the callback I set up in the callback setup.
With the other devices, my input proc gets called every x
milliseconds,
as expected, with the isight, it is only getting called every couple
of
seconds, and I do not have a clue why. This is the behavior I am
observing in ComplexPlaythrough as well.
Sounds like you have the beginnings of a bug report. In fact, that
might be the best way to deal with this as it gives you the
opportunity to give us some code that illustrates the issues you are
seeing. That will allow us to take a deeper look at what might be
going on.
--
Jeff Moore
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