• 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: GUI update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI update


  • Subject: Re: GUI update
  • From: William Stewart <email@hidden>
  • Date: Fri, 27 Aug 2010 15:01:41 -0700

You should do as little as possible on the render callback:

(1) It is a real-time thread, it is running at the exclusion of other activity on the system
(2) It is a running to a deadline, you miss the deadline, you glitch

What are you doing that requires the fine granularity of timing that audio runs at? So, if you "wouldn't agree", I'd actually be interested to know why.

On Aug 27, 2010, at 12:10 PM, Gregory Wieber wrote:

Michael Tyson has written about this at length on his blog and here as well.  For GUI changes that must be synched with audio,  open gl is probably the best bet, and yes, you should trigger your methods from within a render callback.  Also,  I wouldn't agree about the render callback only performing audio -- in some cases you must inline your functionality to get the most speed.



On Fri, Aug 27, 2010 at 11:44 AM, Patrick Muringer <email@hidden> wrote:
Hi all,

As the Render callback should only perform audio stuff, in case of an application with timing based on sample time in the callback, what strategy would you recommend to updated the GUI? Event sent by the callback? Variable set in the callback and main thread that checks for variable changes?

Thanks for your appreciated feedback.

Pat

 _______________________________________________
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

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: GUI update
      • From: Gregory Wieber <email@hidden>
References: 
 >Re: Getting name of an Audio Unit (From: Chris Adamson <email@hidden>)
 >GUI update (From: Patrick Muringer <email@hidden>)
 >Re: GUI update (From: Gregory Wieber <email@hidden>)

  • Prev by Date: Re: Getting name of an Audio Unit
  • Next by Date: Re: GUI update
  • Previous by thread: Re: GUI update
  • Next by thread: Re: GUI update
  • Index(es):
    • Date
    • Thread