From a25d26f5480c8b5883fa5c29d6741b5587e59369 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 15 Jan 2017 11:36:15 +0100 Subject: [PATCH] Make scan speed much more aggressive; seemingly there are some pauses from the driver, too. --- mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixer.cpp b/mixer.cpp index d544b0b..44993b5 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -269,7 +269,7 @@ void Mixer::bm_frame(unsigned card_index, uint16_t timecode, // Found a stable signal, so stop scanning. is_mode_scanning[card_index] = false; } else { - static constexpr double switch_time_s = 0.5; // Should be enough time for the signal to stabilize. + static constexpr double switch_time_s = 0.1; // Should be enough time for the signal to stabilize. steady_clock::time_point now = steady_clock::now(); double sec_since_last_switch = duration(steady_clock::now() - last_mode_scan_change[card_index]).count(); if (sec_since_last_switch > switch_time_s) { -- 2.39.2