Exemple #1
0
        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);
        }
Exemple #2
0
 public void unloadPlugin(VSTPlugin plugin)
 {
     plugins.Remove(plugin);
     VashtiUnloadPlugin(plugin.id);
 }