public void idle() { if (HasEditorDialog) { PluginCommandStub.EditorIdle(); } }
void ProgramAction_RestorePgm(int selectedPgm) { if (pgmBackup != null) { PluginCommandStub.SetChunk(pgmBackup, true); } }
void ProgramAction_RestorePrs(int pat) { if (pgmBackup != null) { PluginCommandStub.SetChunk(pgmBackup, true); } }
void CreateContext(string path) { if (context != null) { try{ context.PluginCommandStub.Close(); } catch {} try{ context.Dispose(); } catch {} try{ context = null; } catch {} } context = VstPluginContext.Create(path, Host.VstHost); PluginCommandStub.SetSampleRate(Convert.ToSingle(Host.VstPlayer.Settings.Rate)); Set("PluginPath", PluginPath = path); Set("HostCmdStub", Host.VstHost); // if (context!=null) Open(); }
public bool end() { return(PluginCommandStub.EndSetProgram()); }
public bool begin() { return(PluginCommandStub.BeginSetProgram()); }