• 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
Re: best way to divert callbacks to main thread from audio thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: best way to divert callbacks to main thread from audio thread
      • From: Kyle Sluder <email@hidden>
    • Re: best way to divert callbacks to main thread from audio thread
      • From: Rich E <email@hidden>
References: 
 >best way to divert callbacks to main thread from audio thread (From: Rich E <email@hidden>)

  • Prev by Date: best way to divert callbacks to main thread from audio thread
  • Next by Date: Re: best way to divert callbacks to main thread from audio thread
  • Previous by thread: best way to divert callbacks to main thread from audio thread
  • Next by thread: Re: best way to divert callbacks to main thread from audio thread
  • Index(es):
    • Date
    • Thread