Re: MP audio output
Re: MP audio output
- Subject: Re: MP audio output
- From: Kurt Bigler <email@hidden>
- Date: Thu, 21 Mar 2002 20:04:55 -0800
on 3/21/02 3:48 PM, Jeff Moore <email@hidden> wrote:
>
on 3/21/02 3:30 PM, Kurt Bigler <email@hidden> wrote:
>
>
> The bottom line question is whether there is a way to leverage the core audio
>
> system to assist in setting up threads to utilize multiple processors.
>
>
The key to using multiple processors is efficient use of multiple threads.
>
Unfortunately, divvying up signal processing tasks amongst multiple threads
>
is a very complex task. The solutions tend to be highly application
>
specific. As such there really aren't any tools in the audio system to help
>
you out here.
I am dealing with a software synth for which the divide-and-conquer approach
works very nicely. The audio computation for each thread would be entirely
independent, except that incoming MIDI events must be distributed to the
individual threads (which is pretty easy), and then the final audio outputs
need to be mixed.
I could learn how to spawn and synchronize my own MP threads triggered by
HAL or AudioUnit callbacks. But what I meant by "leveraging" the audio
system is utilizing the existing callback structure to create a thread
design that is reliable and no more complex than needed.
So before I give up, forgive me but I just have to ask: by any chance,
would it be fairly easy for apple to just remove the restriction of one
callback thread per device per application in order to provide a simple
architecture for multi-cpu-capable audio-intensive applications like mine?
If not, is there a clean way to spawn additional processes (in the sense
that would permit the HAL to let me have multiple clients) or do I have to
create multiple application executables to do this like in OS 9?
Thanks for all your help. No doubt your answers this time will put this
thread to rest.
-Kurt Bigler
_______________________________________________
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.