public new void Dispose() { UtilityAudio.DisposeVST(); vst = null; base.Dispose(); vstFormSingleton = null; }
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(); }