• 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: property listeners and RT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: property listeners and RT


  • Subject: Re: property listeners and RT
  • From: Ian Kemmish <email@hidden>
  • Date: Sun, 8 Nov 2009 20:18:06 +0000


On 8 Nov 2009, at 09:49:17, Paul Davis <email@hidden> wrote:


i googled around and couldn't find any indication on whether or not AU
property listener's notification handlers are supposed to be RT safe.
given that ardour does automation from the RT/audio thread, it seems
unlikely to me that we want to be notifying listeners (e.g. plugin
GUIs) of changes from there. i find it unlikely that most plugins
defer the real handling of a property notification to a non-RT thread.
am i right?



I think you'll find that the mantra is "parameters for performance; properties for setting up".


That is, parameters may be automated, and the changes should be used by the AU in real time; the UI's parameter listeners will get called sometime in the not-too-distant future.

On the other hand, properties are intended for editing from the UI by the user, and not for automation. So properties tend to get changed in the app's "main" thread, but definitely not on the real time thread, and Apple's sample code for PropertyChanged() calls the UI's property listeners right there and then.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ian Kemmish 18 Durham Close, Biggleswade, Beds SG18 8HZ
email@hidden Tel: +44 1767 601361 Mob: +44 7952 854387
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



_______________________________________________ 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: property listeners and RT
      • From: Paul Davis <email@hidden>
  • Prev by Date: au property listeners and RT
  • Next by Date: Re: property listeners and RT
  • Previous by thread: Re: au property listeners and RT
  • Next by thread: Re: property listeners and RT
  • Index(es):
    • Date
    • Thread