mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Stop WINMME midi driver/devices when PortAudio backend is stopped
This commit is contained in:
parent
2dbdaaa8f5
commit
d520b9c878
2 changed files with 6 additions and 0 deletions
|
|
@ -602,6 +602,8 @@ PortAudioBackend::stop ()
|
|||
return 0;
|
||||
}
|
||||
|
||||
_midiio->stop();
|
||||
|
||||
_run = false;
|
||||
|
||||
if (!stop_blocking_process_thread ()) {
|
||||
|
|
|
|||
|
|
@ -145,6 +145,10 @@ WinMMEMidiIO::start ()
|
|||
void
|
||||
WinMMEMidiIO::stop ()
|
||||
{
|
||||
if (!m_run) {
|
||||
DEBUG_MIDI ("MIDI driver already stopped\n");
|
||||
return;
|
||||
}
|
||||
DEBUG_MIDI ("Stopping MIDI driver\n");
|
||||
m_run = false;
|
||||
stop_devices ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue