Re: Paremeter changes by the user
Re: Paremeter changes by the user
- Subject: Re: Paremeter changes by the user
- From: William Stewart <email@hidden>
- Date: Thu, 17 Jun 2004 18:02:17 -0700
Aristotel
This is quite correct - unless you are doing something when the
parameter values changes, you only need to get the parameter when you
are doing rendering, so don't need to overwrite SetParameter...
Bill
On 17/06/2004, at 2:31 PM, Brian Willoughby wrote:
>
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.
>
>
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
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.