Bencina: Real-time audio programming 101: time waits for nothing
Bencina: Real-time audio programming 101: time waits for nothing
Ross Bencina has put up an
introduction to glitch-free audio programming.
"The main problems I'm concerned with here are with code that runs
with unpredictable or un-bounded execution time. That is, you're unable to
predict in advance how long a function or algorithm will take to
complete. Perhaps this is because the algorithm you chose isn't
appropriate, or perhaps it's because you don't understand the temporal
behavior of the code you're calling. Whatever the cause, the result is the
same: sooner or later your code will take longer than the buffer period and
your audio will glitch.
"