AU-Newbie question re: parameters and Process()
AU-Newbie question re: parameters and Process()
- Subject: AU-Newbie question re: parameters and Process()
- From: Howard Moon <email@hidden>
- Date: Thu, 17 Apr 2008 15:14:38 -0700
I've been looking at various simple Audio Units examples, and noticed
that in the Process function, they call GetParameter to get the
current values of the parameters required for the audio processing.
In my work on other host platforms (e.g., VST), we've kept the values
used in processing as members of the "effect" class. Then, when any
parameter values were changed, we'd change the corresponding member
accordingly (sometimes mapping from the given range to a range more
suitable to our processing code).
This was a practice which may have begun in order to save precious
time when processing began, because we'd have all the processing
parameters already set and not have to go fetch them (and possibly
map them) at process time.
My question is: what's the standard method in the AU field? Do you
call GetParameter for all important values at processing time, or do
you store them in members (of the AUKernelBase-derived class), so
that they're right there where you need them?
My *guess* is that modern processors are fairly quick about this sort
of thing, and that calling GetParameter is not only plenty fast
enough, but also better practice, since it keeps the parameters in
one specific place, accessible via GetParameter at any time.
Am I correct? Is it normal to call GetParameter to load up local
variables in the Process function?
Thanks,
-Howard
_______________________________________________
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