View Single Post
Old 04-06-2010, 06:42 AM   #22
Human being with feelings
Join Date: Mar 2009
Posts: 256

Which host are you testing in? I am using Reaper. For regular parameters ModifyCurrentPreset() is being called as a result of Reaper doing an effGetChunk after I move a control, maybe other hosts don't do this?

Anyway I think the fix is in IPlugVST.cpp, it should be like this (currently the test is inverted):

    case effSetProgram: {
      if (_this->DoesStateChunks()) {
      _this->RestorePreset((int) value);
      return 0;
Although that seems a strange mistake to make, I hope I have not misunderstood something...
cc_ is offline   Reply With Quote