Re: Wildcard AUListener or AUEventListener
Re: Wildcard AUListener or AUEventListener
- Subject: Re: Wildcard AUListener or AUEventListener
- From: William Stewart <email@hidden>
- Date: Tue, 6 Jun 2006 15:43:52 -0700
No - there is no wildcard listener. you have to instantiate a
listener for each parameter - the wildcard is to use to issue a
notification that any parameter could change. Have a look at the code
in AudioUnitHosting - we use this wildcard here to notify listeners
when a preset is set.
On 05/06/2006, at 11:11 AM, B.J. Buchalter wrote:
On 6/5/06 1:34 PM, "Cynthia Bruyns" <email@hidden> wrote:
Hi Cynthia,
kAUParameterListener_AnyParameter
Yeah -- that doesn't work unfortunately. You get an error code back
when you
call AUListenerAddParameter with that parameter number -- the error
code is
"invalid parameter". It seems that constant is only for sending
notifications; not for receiving them.
As far as I can tell, you have to iterate over all the parameters and
register for each parameter. At least that is what I am doing now
and it
seems to work fine (if a little cumbersome).
Best regards,
B.J. Buchalter
Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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