From b37414e01c9205319ac267e9a2cb74c3e7d1287a Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sun, 21 Jan 2024 10:55:01 -0600 Subject: [PATCH] Srnd: only update LUFS and dBTP displays while transport is rolling --- gtk2_ardour/surround_strip.cc | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/gtk2_ardour/surround_strip.cc b/gtk2_ardour/surround_strip.cc index 47b8d9281f..0df96ba5bc 100644 --- a/gtk2_ardour/surround_strip.cc +++ b/gtk2_ardour/surround_strip.cc @@ -398,22 +398,26 @@ SurroundStrip::fast_update () } std::shared_ptr sur = _route->surround_return (); - float loud = sur->integrated_loudness(); - if (loud > -90) { - char buf[32]; - sprintf(buf, "%3.1f", loud); - _lufs_label.set_markup (string_compose ("%1", buf)); - } else { - _lufs_label.set_markup ("-"); - } - float dbtp = sur->max_dbtp(); - if (dbtp > -90) { - char buf[32]; - sprintf(buf, "%3.1f", dbtp); - _dbtp_label.set_markup (string_compose ("%1", buf)); - } else { - _dbtp_label.set_markup ("-"); + //these 2 text meters should only be updated while rolling or exporting + if (_route->session().transport_rolling()) { + float loud = sur->integrated_loudness(); + if (loud > -90) { + char buf[32]; + sprintf(buf, "%3.1f", loud); + _lufs_label.set_markup (string_compose ("%1", buf)); + } else { + _lufs_label.set_markup ("-"); + } + + float dbtp = sur->max_dbtp(); + if (dbtp > -90) { + char buf[32]; + sprintf(buf, "%3.1f", dbtp); + _dbtp_label.set_markup (string_compose ("%1", buf)); + } else { + _dbtp_label.set_markup ("-"); + } } }