13
0

fix latency measurement result display

If measurement is fast (<100ms), the GUI timeout function
never displayed the measured value.
This commit is contained in:
Robin Gareus 2015-01-25 10:18:33 +01:00
parent 232d67bc53
commit 37b8412aa3

View File

@ -1967,6 +1967,8 @@ EngineControl::check_audio_latency_measurement ()
solid = false;
}
lm_results.set_markup (string_compose (results_markup, buf));
if (solid) {
have_lm_results = true;
end_latency_detection ();
@ -1974,8 +1976,6 @@ EngineControl::check_audio_latency_measurement ()
return false;
}
lm_results.set_markup (string_compose (results_markup, buf));
return true;
}
@ -2027,6 +2027,7 @@ EngineControl::check_midi_latency_measurement ()
have_lm_results = true;
end_latency_detection ();
lm_use_button.set_sensitive (true);
lm_results.set_markup (string_compose (results_markup, buf));
return false;
} else if (mididm->processed () > 400) {
have_lm_results = false;