View Single Post
Old 09-03-2020, 12:26 AM   #10
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,142
Default

I don't know... But I do know it actually works the other way around: When you click on a switch OnMouseDown() is called, which updates the control value, and then forwards this value to parameter by calling SetDirty(), which in turn calls SetParameterFromGUI().

This always happens, so it should always work, but SetParameterFromGUI() is protected by a mutex lock, so maybe this could be a race condition in Pro Tools? If so, then I would expect this to also happen with other controls, also with other WDL-OL AAX plug-ins.

BTW, is this with a stock ISwitchControl, or a control derived from ISwitchControl? How many states does the switch have?
Tale is offline   Reply With Quote