IPlug program structures
I've been coding some plugins that have various controls that don't interact with the DAW as standard parameters(ie. paramIdx==-1 when instantiating the control) because I don't want their state restored or automated by the DAW.
This means there's no OnParamterChange called when the control is touched. In one situation I tested a flag variable in ProcessReplacing to detect and respond to an event. The processing at this point was very light and everything works well.
In the current project a button opens a file dialog which suspends the thread which is obviously no good for ProcessReplacing.
So my question is how to detect and service events from non-DAW parameter controls?
|