public VSTPlugin loadPlugin(string filename) { VSTPlugin plugin = null; int plugid = VashtiLoadPlugin(filename); //load plugin in backend, returns -1 if load failed if (plugid != -1) { plugin = new VSTPlugin(this, filename, plugid); plugins.Add(plugin); } return(plugin); }
public void unloadPlugin(VSTPlugin plugin) { plugins.Remove(plugin); VashtiUnloadPlugin(plugin.id); }