13
0

PortAudio: skip process callbacks until ports are established

This commit is contained in:
Robin Gareus 2017-08-07 19:27:37 +02:00
parent 518cf6045c
commit fd6377a5af

View File

@ -641,7 +641,6 @@ PortAudioBackend::_start (bool for_latency_measurement)
_measure_latency = for_latency_measurement; _measure_latency = for_latency_measurement;
_run = true;
_port_change_flag = false; _port_change_flag = false;
if (_midi_driver_option == winmme_driver_name) { if (_midi_driver_option == winmme_driver_name) {
@ -680,8 +679,9 @@ PortAudioBackend::_start (bool for_latency_measurement)
return PortReconnectError; return PortReconnectError;
} }
engine.reconnect_ports ();
_run = true; _run = true;
engine.reconnect_ports ();
_port_change_flag = false; _port_change_flag = false;
if (_use_blocking_api) { if (_use_blocking_api) {