GUI for latency-measurement signal-level
authorRobin Gareus <robin@gareus.org>
Thu, 14 Jan 2016 18:25:23 +0000 (19:25 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 14 Jan 2016 18:25:23 +0000 (19:25 +0100)
gtk2_ardour/engine_dialog.cc

index ef19aa871446c282c6f8c38d892c0ecb4162009a..4df00e4ce50dbe703913d8a626453b25e4227e1f 100644 (file)
@@ -2782,6 +2782,13 @@ EngineControl::check_audio_latency_measurement ()
                return true;
        }
 
+       if (mtdm->get_peak () > 0.707f) {
+               // get_peak() resets the peak-hold in the detector.
+               // this GUI callback is at 10Hz and so will be fine (test-signal is at higher freq)
+               lm_results.set_markup (string_compose (results_markup, _("Input signal is > -3dBFS. Lower the signal level (output gain, input gain) on the audio-interface.")));
+               return true;
+       }
+
        if (mtdm->err () > 0.3) {
                mtdm->invert ();
                mtdm->resolve ();