• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Multi-threading and glitchless audio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Multi-threading and glitchless audio
      • From: Kurt Revis <email@hidden>
    • Re: Multi-threading and glitchless audio
      • From: Lionel Woog <email@hidden>
  • Prev by Date: Mixing
  • Next by Date: Re: Multi-threading and glitchless audio
  • Previous by thread: Mixing
  • Next by thread: Re: Multi-threading and glitchless audio
  • Index(es):
    • Date
    • Thread