AudioQueueNewInput: how to adjust callback rate?
AudioQueueNewInput: how to adjust callback rate?
- Subject: AudioQueueNewInput: how to adjust callback rate?
- From: "Jeremy Friesner" <email@hidden>
- Date: Tue, 20 May 2008 06:44:28 -0700
Hi all,
I've been playing around with using Leopard's AudioQueue API to record incoming data (both on the iPhone simulator and on regular MacOS/X) and it seems to be mostly working, but I do have one question: is there any way to adjust the timing/frequency of when my audio callback function is called? It seems that it gets called about once or twice a second, no matter what I do. I'd like to have it be called more often, since I update my app's GUI based on the audio data received, and the updates would look smoother and nicer if they happened more often.
I thought I would be able to increase the frequency of the callbacks by using smaller audio buffers, but the AudioQueue engine outsmarted me... with small buffers (e.g. just a few thousand samples at 44.1kHz) my callback still gets called at intervals of once of twice a second, but now when it does get called, it gets called several times in immediate succession.
So, any way to adjust this? Ideally I'd like my callback to be called at a steady rate, e.g. exactly once every 100ms.
Thanks,
Jeremy
_______________________________________________
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