Re: property listeners and RT
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