Multi-threading and glitchless audio
Multi-threading and glitchless audio
- Subject: Multi-threading and glitchless audio
- From: "Amar" <email@hidden>
- Date: Wed, 26 Feb 2003 11:40:26 -0800
Hi all,
I have porting my sound-synthesis software to OS X and CoreAudio and have
been plagued by audio glitches, particular when there is a lot of UI activity
(I currently use Tcl/Tk Aqua for the UI).
The audio architecture is as followss: CoreAudio callback fires-off audio
processing activity in one or more other threads, and waits until those
threads complete before returning.
I have attempted to use the Mach real-time threading procedures to make the
audio-processing threads higher-priority than the UI, and I think I'm doing it
right (I took the code directly from either this list or a related list hosted
by Apple), but I still get cut outs. Trying to re-write the architecture of
my software to run its processing exclusively in the audio-callback procedure
would be rather difficult (especially considering that has already been
designed to run under Windows, Linux and SGI).
Is anyone else attempting to process audio in multiple threads, and if so
is there a trick to doing this that I'm missing?
Thanks and regards,
Amar Chaudhary
OpenSoundWorld Project
email@hidden
_______________________________________________
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.