From 430dae62509e21d6082a032333c8e1182eb61a07 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 28 Sep 2019 20:53:50 +0200 Subject: Add Signal to indicate global delay compensation status --- libs/ardour/ardour/latent.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/ardour/ardour/latent.h') diff --git a/libs/ardour/ardour/latent.h b/libs/ardour/ardour/latent.h index 8135d2d45e..0e34d3c81a 100644 --- a/libs/ardour/ardour/latent.h +++ b/libs/ardour/ardour/latent.h @@ -73,13 +73,18 @@ public: } static void force_zero_latency (bool en) { + if (_zero_latency == en) { + return; + } _zero_latency = en; + DisableSwitchChanged (); /* EMIT SIGNAL */ } static bool zero_latency () { return _zero_latency; } + static PBD::Signal0 DisableSwitchChanged; PBD::Signal0 LatencyChanged; protected: -- cgit v1.2.3