Re: AU from scratch
Re: AU from scratch
- Subject: Re: AU from scratch
- From: William Stewart <email@hidden>
- Date: Wed, 10 Dec 2003 12:24:24 -0800
On 10/12/2003, at 11:20 AM, Scott Ruda wrote:
On Dec 4, 2003, at 12:36 PM, William Stewart wrote:
On 03/12/2003, at 6:54 PM, Scott Ruda wrote:
When you override SetParameter, make sure you call through to the
super class too. The super class registers each parm in a map to be
used for subsequent event handling and widget updating. This method
is called by GenericAUView when parms are edited and therefore is
the place for you to know a user edit has occurred. (The super class
knows if it has already created entries for each parm in its map for
subsequent calls to this method.)
Why do you need to overide SetParameter? This is not a basic
requirement, and should not normally need to be done.
OK, I must be missing something then. How do I respond to a selection
in a popup menu or a button push? Some of the example code I've seen
handles it in SetParameter. What is the right way?
If you need to respond to this when the SetParameter call is made, then
yes, you'd need to overwrite this method.
However, we will typically not respond directly to SetParameter calls,
but rather when asked to Render get the current values of the
parameters and use those values in the render call.
Parameters are not designed or intended to be used to signify to the AU
major state changes (these are down with Property calls)
Bill
-s
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
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
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.