public void Unload() { SaveSettings(); Library.SaveToDatabase(); LoopLibrary.SaveToCache(); BassPlayer.Dispose(); MidiManager.Dispose(); }
public void Dispose() { _midiDevice?.Close(); _midiDevice?.Dispose(); _portInfo?.Dispose(); _deviceInfo?.Dispose(); _midiPort?.Dispose(); _midiManager?.Dispose(); }