Variable number of parameters
Variable number of parameters
- Subject: Variable number of parameters
- From: Antoine Missout <email@hidden>
- Date: Wed, 13 Jul 2005 09:24:14 -0400
Since the subject of host problems/capabilities is on the table:
With the latest version of my software, I included an AU plugin
allowing for in host effect/instrument design. When a parameter is
added or removed, this is executed (this doesn't get called currently
if the change is only to a min or max value, but that will be fixed
soon, just add/remove a dummy parameter to force the events to be sent):
// make the host rebuild the parameter list
AudioUnitEvent myEvent;
myEvent.mArgument.mProperty.mAudioUnit = GetComponentInstance();
myEvent.mArgument.mProperty.mScope = kAudioUnitScope_Global;
myEvent.mArgument.mProperty.mElement = 0;
myEvent.mEventType = kAudioUnitEvent_PropertyChange;
myEvent.mArgument.mProperty.mPropertyID =
kAudioUnitProperty_ParameterList;
AUEventListenerNotify(NULL, NULL, &myEvent);
myEvent.mArgument.mProperty.mPropertyID =
kAudioUnitProperty_ParameterInfo;
AUEventListenerNotify(NULL, NULL, &myEvent);
myEvent.mArgument.mProperty.mPropertyID =
kAudioUnitProperty_ParameterValueStrings;
AUEventListenerNotify(NULL, NULL, &myEvent);
However, Logic doesn't take notice of this. In AULab the new
parameters are added and removed but their min/max are not updated.
I know this is very a rare behaviour, but it would be interesting to
have it supported.
Antoine
_______________________________________________
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