CAAUParameter* ptrParameter = new CAAUParameter(GetComponentInstance(), iParameterIndex, kAudioUnitScope_Global, 0);
AudioUnitEvent paramEvent;
memset(¶mEvent, 0, sizeof(paramEvent));
paramEvent.mArgument.mParameter = *ptrParameter;
paramEvent.mEventType = kAudioUnitEvent_BeginParameterChangeGesture;
AUEventListenerNotify(NULL, NULL, ¶mEvent);
paramEvent.mEventType = kAudioUnitEvent_ParameterValueChange;
AUEventListenerNotify(NULL, NULL, ¶mEvent);
paramEvent.mEventType = kAudioUnitEvent_EndParameterChangeGesture;
AUEventListenerNotify(NULL, NULL, ¶mEvent);
delete ptrParameter;
Again, all I can think of is I might need to call this from my (cocoa) view component. In which case I do not know how to get the component instance, so before I venture down that road I would love to know if that is necesary.