public void ReloadMidiDevice() { MidiManager.OpenMidiDevice(SelectedMidiInputDevice, SelectedMidiOutputDevice); //DEBUG //MidiManager.OpenMidiDevice(MidiManager.GetMidiInputDevices().Last(), MidiManager.GetMidiOutputDevices().Last()); SettingsManager.Settings.LastMidiInputDevice = SelectedMidiInputDevice.Id; SettingsManager.Settings.LastMidiOutputDevice = SelectedMidiOutputDevice.Id; OnPropertyChanged(nameof(ConnectedMidiInputDevice)); OnPropertyChanged(nameof(ConnectedMidiOutputDevice)); }
private void ApplySettingsPostInit() { //Attempt to open the last midi device MidiManager.OpenMidiDevice(SettingsManager.Settings.LastMidiInputDevice, SettingsManager.Settings.LastMidiOutputDevice); }