Input callback only getting called every couple of seconds.
Input callback only getting called every couple of seconds.
- Subject: Input callback only getting called every couple of seconds.
- From: "Bill Cunning" <email@hidden>
- Date: Fri, 8 Dec 2006 17:10:17 -0500
- Thread-topic: Input callback only getting called every couple of seconds.
Hi all.
I have run into something interesting, and I don't have a clue where to
start looking for the problem.
I am capturing voice from mic, and after some initial flailing about
(coming from windows) I got it all working with a usb headset/mic.
Yesterday I hooked up an isight camera/mic combination, and ran into
this problem.
As I set up the audio unit, everything works without error except the
call to set default sample rate
--AudioDeviceSetProperty(id,0,0,1,kAudioDevicePropertyNominalSampleRate,
size,&rate) where rate = 8000. I expected this and will downsample the
captured audio to get it to the desired sample rate. Continued setup of
the device all appears to work fine (err always = 0 on the various
calls) and the mic does appear to capture data, the problem is that the
input callback is only getting called about every 1.8 seconds, but the
buffers only contain about 16 ms of data. If I switch back to the
headset mic id and restart, the callback is called as expected.
I expect I am missing something obvious here, but I can't see it :)
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