From fd6377a5af29f1e52b868e4be5c3f0c5c2157bf4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 7 Aug 2017 19:27:37 +0200 Subject: [PATCH] PortAudio: skip process callbacks until ports are established --- libs/backends/portaudio/portaudio_backend.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/backends/portaudio/portaudio_backend.cc b/libs/backends/portaudio/portaudio_backend.cc index 370bf519ed..b9ef48fd4f 100644 --- a/libs/backends/portaudio/portaudio_backend.cc +++ b/libs/backends/portaudio/portaudio_backend.cc @@ -641,7 +641,6 @@ PortAudioBackend::_start (bool for_latency_measurement) _measure_latency = for_latency_measurement; - _run = true; _port_change_flag = false; if (_midi_driver_option == winmme_driver_name) { @@ -680,8 +679,9 @@ PortAudioBackend::_start (bool for_latency_measurement) return PortReconnectError; } - engine.reconnect_ports (); _run = true; + + engine.reconnect_ports (); _port_change_flag = false; if (_use_blocking_api) {