Beispiel #1
0
        //cons
        public VSTPanel(VSTRig _rig, int _plugNum)
        {
            InitializeComponent();

            rig         = _rig;
            audiwin     = rig.controlPanel.auditwin;
            host        = rig.controlPanel.host;
            midiDevices = rig.controlPanel.midiDevices;

            plugNum = _plugNum;
            this.lblPlugName.Text = plugName;
            plugPath = null;
            fileName = null;
            plugin   = null;

            this.Size = new Size(PANELWIDTH, PANELHEIGHT);

            pluginInfoWnd  = null;
            paramEditorWnd = null;
            editorWindow   = null;

            midiInDevice     = null;
            midiInUnit       = null;
            midiOutDeviceNum = -1;

            audioOut = "no output";
        }
Beispiel #2
0
        public void unloadPlugin()
        {
            //close child windows
            if (pluginSettingsWnd != null)
            {
                pluginSettingsWnd.Close();
                pluginSettingsWnd = null;
            }
            if (pluginInfoWnd != null)
            {
                pluginInfoWnd.Close();
                pluginInfoWnd = null;
            }
            if (paramEditorWnd != null)
            {
                paramEditorWnd.Close();
                paramEditorWnd = null;
            }
            if (editorWindow != null)
            {
                editorWindow.Close();
                editorWindow = null;
            }

            //disconnect midi i/o
            if (midiInDevice != null)
            {
                disconnectMidiInput(midiInDevice, midiInUnit);
            }

            host.unloadPlugin(plugin);     //disconnect and unload back end
        }
Beispiel #3
0
        //- plugin info window ------------------------------------------------

        private void btnPlugInfo_Click(object sender, EventArgs e)
        {
            btnPlugInfo.Enabled        = false;
            pluginInfoWnd              = new PluginInfoWnd(this);
            pluginInfoWnd.Text         = plugName + " info";
            pluginInfoWnd.Icon         = audiwin.Icon;
            pluginInfoWnd.FormClosing += new FormClosingEventHandler(infoWindow_FormClosing);
            pluginInfoWnd.Show();
        }