Re: Property Listener for parameter values?
Re: Property Listener for parameter values?
- Subject: Re: Property Listener for parameter values?
- From: Airy André <email@hidden>
- Date: Wed, 20 Nov 2002 20:53:39 +0100
I've put this in my HandleControlChange method of one of my synth :
void CNeuSynth::HandleControlChange( int inChannel,
UInt8 inController,
UInt8 inValue,
long inStartFrame)
{
AudioUnitParameter aup;
aup.mAudioUnit = mComponentInstance;
aup.mScope = kAudioUnitScope_Global;
aup.mElement = 0;
...
switch (inController) {
case kLFO1DepthMIDIController:
aup.mParameterID = kG5;
AUParameterSet(0, 0, &aup, (inValue-64.)/64., 0);
break;
...
}
My GUI is very happy with that, even with several instances of my GUI
window open at the same time...
And it seems quite logical to me to do so, and the only way to be sure
everybody interested by the change will be notified.
Airy
_______________________________________________
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.