Re: audio computation and feeder threads
Re: audio computation and feeder threads
- Subject: Re: audio computation and feeder threads
- From: Bill Stewart <email@hidden>
- Date: Sat, 1 Mar 2003 18:23:57 -0800
On Friday, February 28, 2003, at 08:24 PM, Lionel Woog wrote:
Typically, an IOProc will be called with a 512 frames request. If you
can
generate that much in or close to real time you are fine. If you
cannot
always do it (i.e. You generate 8K frames at a time, so the lag to
provide
the first 512 frames is large), then you need a feeder thread that
pre-computes and buffers the data.
I believe that you will find core audio very able at keeping itself
fed.
Actually, to nit-pick, this statement really implies that you CAN'T run
in real time (so buffering won't help you with a real-time control
stream like responding to MIDI input), so could only process your input
to a resultant audio file to be played back later... (much like Logic
6's new "freeze" functionality)
Bill
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.