Re: Notifications about read-only parameter changes
Re: Notifications about read-only parameter changes
- Subject: Re: Notifications about read-only parameter changes
- From: Doug Wyatt <email@hidden>
- Date: Fri, 09 Sep 2016 11:04:13 -0700
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@hidden> 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@hidden> 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@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
_______________________________________________
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