private void MidiDeviceOutputTests_Unloaded(object sender, RoutedEventArgs e) { // Stop the output device watcher _midiOutDeviceWatcher.Stop(); // Close all MidiOutPorts foreach (IMidiOutPort outPort in _midiOutPorts) { outPort.Dispose(); } _midiOutPorts.Clear(); }
private void MidiDeviceEnumerationTests_Unloaded(object sender, Windows.UI.Xaml.RoutedEventArgs e) { // Stop the input and output device watchers _midiInDeviceWatcher.Stop(); _midiOutDeviceWatcher.Stop(); }