public static VSTHost GetInstance() { if (_instance == null) { _instance = new VSTHost(); } return _instance; }
private void MetroWindow_Loaded(object sender, RoutedEventArgs e) { Player.GetInstance(); songVolumeSlider.Minimum = 0.0f; songVolumeSlider.Maximum = 1.0f; settingsWindow = new SettingsWindow(); _vstHost = VSTHost.GetInstance(); _vstHost.AddPluginCollection(new PluginCollection()); pluginList.ItemsSource = _vstHost.UsedPluginCollection.AllPlugins; pluginList.DisplayMemberPath = "Name"; settingsWindow.Show(); settingsWindow.Owner = this; }