Re: Audio Threads
Re: Audio Threads
- Subject: Re: Audio Threads
- From: Jeff Moore <email@hidden>
- Date: Wed, 10 Apr 2002 12:00:01 -0700
on 4/10/02 9:07 AM, Jeremy Jurksztowicz <email@hidden> wrote:
>
What assumptions can I make about the threads running the AudioUnits? Are the
>
threads high priority? I have noticed in the examples that when an audio
>
converter has to be installed mid run, there is no attempt to lock it first.
>
Is that safe, or is it done to keep the examples simple?
AudioUnits are designed to be able to run in both real time and non-real
time, so RenderSlice can be called from any thread.
If your graph is going out to hardware, then RenderSlice will be called on
the HAL's IO thread for the device. The HAL uses the time constraint
scheduling policy for it's IO threads This makes these threads are about as
high priority as you can get on the system to ensure the proper timing of
things.
--
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.
References: | |
| >Audio Threads (From: Jeremy Jurksztowicz <email@hidden>) |