Re: best way to divert callbacks to main thread from audio thread
Re: best way to divert callbacks to main thread from audio thread
- Subject: Re: best way to divert callbacks to main thread from audio thread
- From: Paul Davis <email@hidden>
- Date: Mon, 03 Oct 2011 10:42:41 -0400
On Mon, Oct 3, 2011 at 9:52 AM, Rich E <email@hidden> wrote:
> Hi all,
> I'm working on a project that is using a c library for audio
> processing in iOS via audio units. We have a few callbacks that are
> scheduled from the C library on the audio thread, but need to be
> delivered on the main thread for UI updates, some with signatures that
> have up to three arguments.
>
> Obviously, we want to spend as little time on the audio thread to call
> these and we want to allocate as little memory as possible while doing
> so (although we will have to allocate some...). I was wondering what
> people here would suggest as the preffered approach. So far our
> options look like:
the fastest is to post a mach message to a mach port. since i know
libpd is open source, i suggest you take a look at the jack sources if
you want some examples on how to do this. its pretty easy.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden