Default to device reported systemic latency

This commit is contained in:
Robin Gareus 2020-02-24 04:25:42 +01:00
parent a9c75f9760
commit 7eb16db628
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 6 additions and 0 deletions

View File

@ -1972,6 +1972,12 @@ EngineControl::maybe_display_saved_state ()
}
} else {
DEBUG_ECONTROL ("Unable to find saved state for backend and devices");
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
if (backend) {
input_latency.set_value (backend->systemic_hw_input_latency ());
output_latency.set_value (backend->systemic_hw_output_latency ());
}
}
}