I need a procedure to be called when the user bypass the plugin.
I added in IPlugVST.cpp:
Code:
case effCanDo: {
......................
if (!strcmp((char*) ptr, "bypass")) {
return 1;
}
...................
case effSetBypass: {
if ((int)value==1)
_this->OnActivate(false);
else
_this->OnActivate(true);
}
The problem is that some hosts do not send opCode -> effSetBypass as they should. Not even Reaper sends correctly effSetBypass.
How can I solve the problem?