Exemple #1
0
        public new void Dispose()
        {
            UtilityAudio.DisposeVST();
            vst = null;
            base.Dispose();

            vstFormSingleton = null;
        }
Exemple #2
0
        public VstViewer(string VSTPath)
        {
            vstFormSingleton = this;
            UtilityAudio.OpenAudio(AudioLibrary.NAudio, RMVN_Studio.Properties.Settings.Default.ASIODriverName);
            InitializeComponent();
            vst       = UtilityAudio.LoadVST(VSTPath, this.Handle);
            this.Text = vst.PluginContext.PluginCommandStub.GetEffectName();
            var rect = new Rectangle();

            vst.PluginContext.PluginCommandStub.EditorGetRect(out rect);
            this.SetClientSizeCore(rect.Width, rect.Height);
            UtilityAudio.StartAudio();
        }