Yes, this gets into the messy history of how AUParameterListener was bolted on 
after the fact ... according to a strict reading of the header comments, maybe 
the AU ought to be pushing notifications, but it doesn't, and that's unlikely 
to change.

Since the use case for observing that kind of parameter is usually for drawing 
a meter, it's reasonable to poll at a reasonable drawing refresh rate, since 
the parameter would typically be changing at the audio render rate anyhow.

Doug


> On Sep 9, 2016, at 8:08 , Paul Davis <[email protected]> wrote:
> 
> It seems unlikely to me that anything will post a notification for a 
> read-only parameter.
> 
> The notifications are normally posted after something (plugin GUI, host, 
> plugin itself) has changed the parameter, so that all other parties (plugin 
> GUI, host, plugin itself) can remain in sync with respect to the parameter.
> 
> By definition, the semantics for a read-only parameter are entierly different.
> 
> I could be wrong.
> 
> On Thu, Sep 8, 2016 at 3:31 PM, Sky <[email protected]> wrote:
> Hello all!
>  
> I am trying to use an AUDynamicsProcessor as part of my project.
>  
> I would like to to get notifications when 
> kDynamicsProcessorParam_CompressionAmount is > 0
>  
> I tried setting up a listener using AUEventListenerCreate and 
> AUEventListenerAddEventType.
>  
> It works fine for, e.g. kDynamicsProcessorParam_MasterGain, but not for 
> kDynamicsProcessorParam_CompressionAmount which is a read-only parameter.
>  
> Could anyone tell me the correct way to go about doing this?
>  
> Help greatly appreciated!
>  
> Thanks, Sky.
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/coreaudio-api/paul%40linuxaudiosystems.com
> 
> This email sent to [email protected]
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/coreaudio-api/dwyatt%40apple.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to