]> git.sesse.net Git - nageru/commitdiff
Make scan speed much more aggressive; seemingly there are some pauses from the driver...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 15 Jan 2017 10:36:15 +0000 (11:36 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 15 Jan 2017 21:04:41 +0000 (22:04 +0100)
mixer.cpp

index d544b0bf0801ba5208d10ddb0f37b396cd6911a8..44993b55b6b867d685623e26232d5c151f04c879 100644 (file)
--- 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<double>(steady_clock::now() - last_mode_scan_change[card_index]).count();
                        if (sec_since_last_switch > switch_time_s) {