Re: MP audio output
Re: MP audio output
- Subject: Re: MP audio output
- From: Jeff Moore <email@hidden>
- Date: Thu, 21 Mar 2002 15:48:56 -0800
on 3/21/02 3:30 PM, Kurt Bigler <email@hidden> wrote:
>
So I take it that HAL can mix multiple clients, but each client being mixed
>
must be in a separate process (which I interpret to mean a separate
>
application or separate copy of the same application). With this setup then
>
would HAL mix output from multiple clients?
This is correct, except that the driver does the actual mixing and it mixes
data from all the individual IOProcs. There is no limit on the number of
IOProcs a process can install on a device, save the limits of RAM and CPU as
each IOProc requires its own wired buffers and presumably require some
amount of CPU time to render its audio.
>
Does the single-stream limit get in the way of this?
I'm not sure what you mean by this.
>
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.
The various CoreAudio APIs are thread safe however, so you have complete
flexibility to use the system's threading tools with CoreAudio. I'd start
with a simple producer/consumer model and then branch out from there as your
needs dictate.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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.