Re: One Cocoa view for multiple AUs?
Re: One Cocoa view for multiple AUs?
- Subject: Re: One Cocoa view for multiple AUs?
- From: Brian Willoughby <email@hidden>
- Date: Mon, 9 Nov 2009 16:39:27 -0800
Oops, that would be AUBase:SetParameter(), but I'm sure you got the
gist...
On Nov 9, 2009, at 16:22, Brian Willoughby wrote:
On Nov 9, 2009, at 13:45, ipmlists wrote:
2009/11/7 Brian Willoughby <email@hidden>:
I believe that what you will have to do is make a map at run time
from the
parameters of each of the embedded AUs, and then fold them into
your wrapper
AU.
<snip>
Once you have the map, your wrapper AU would report the combined
list of
parameters as its own. Then you need to rewrite the parameter
functions to
detect whether a given parameter change is local or intended for
an embedded
AU, passing the parameter change on when necessary.
Ok, this is where I'm having problems: there's no way (is there?) to
override AUParameterSet or AudioUnitSetParameter, so how can the
wrapper AU intercept param change requests coming from the view?
You don't override the system API AUParameterSet() or
AudioUnitSetParameter() - those are intended for dealing with
AudioUnits from the "outside." Instead, when working "inside" the
AudioUnit itself, you override AUBase::GetParameter() in your
subclass. Look around at the AudioUnit examples, including the
ones which derive from AUEffectBase or AUInlineEffectBase.
Brian Willoughby
Sound Consulting
_______________________________________________
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