[Summary] Changed midi stop order related to audio

This commit is contained in:
Greg Zharun 2015-03-02 03:54:40 +02:00 committed by Paul Davis
parent 708f4bf12b
commit 47adf3ba37

View file

@ -785,6 +785,8 @@ WavesAudioBackend::stop ()
// COMMENTED DBG LOGS */ std::cout << "\t[" << _device->DeviceName () << "]" << std::endl;
_midi_device_manager.stop ();
if (_device) {
wtErr = _device->SetStreaming (false);
if (wtErr != eNoErr) {
@ -793,8 +795,6 @@ WavesAudioBackend::stop ()
}
}
_midi_device_manager.stop ();
_unregister_system_audio_ports ();
_unregister_system_midi_ports ();