Re: Automation record ?
Re: Automation record ?
- Subject: Re: Automation record ?
- From: Marc Poirier <email@hidden>
- Date: Fri, 29 Nov 2002 13:29:55 +0100 (CET)
>
Could someone explain to me what is the internal mechanism for
>
an AU host application to :
>
- get the parameter list and props of an AU ?
If deriving from the AUBase class (which I imagine you probably are), then
this is made very easy for you. The parameter list is managed entirely
for you. All you have to do is make sure that you set some value for each
parameter using AUBase::SetParameter during your plugin's constructor.
AUBase maintains an STL vector or something like that (I'm just trying to
remember off the top of my head) of all of the parameter IDs. The vector
starts off empty, and then, every time you set a parameter value, that ID
is added to the vector if it's not already there. AUBase also provides an
implementation of GetParameterList for you, using that vector, so you
don't need to worry about that at all. To provide property info on your
parameters, just override GetParameterInfo, make sure that you return
noErr to inquiries on valid parameter IDs in valid scopes (probably
kAudioUnitScope_Global for all of your parameters), and fill in the
various fields of the incoming ParameterInfo struct. Again, AUBase will
handle mapping the GetProperty calls to your plugin's GetParameterInfo
method.
Marc
_______________________________________________
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.