Re: Paremeter changes by the user
Re: Paremeter changes by the user
- Subject: Re: Paremeter changes by the user
- From: Brian Willoughby <email@hidden>
- Date: Thu, 17 Jun 2004 14:31:42 -0700
There may be no need to have a variable that is updated. You could simply
wait until the render call and set a local variable by calling GetParameter().
Depending upon which CoreAudio effect class you use, this technique will even
support sample-acurate parameter changes, because render will be called with
smaller buffers as the parameter changes.
The only truly necessary class variables in AudioUnits are state variables
which need to be maintained between render calls. All parameters can be loaded
into local register variables using GetParameter() before beginning the
processing loop.
Brian Willoughby
Sound Consulting
Begin forwarded message:
That is starting to make things clearer but I still have a few questions
I would like to understand. Since the UI calls the SetParameter function
automatically. So this would mean that I need to override/redefine the
SetParameter function so that there is a switch command to check which
parameter has been updated and update the coresponding variable.
_______________________________________________
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.