summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/latent.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-09-28 20:53:50 +0200
committerRobin Gareus <robin@gareus.org>2019-09-29 01:26:52 +0200
commit430dae62509e21d6082a032333c8e1182eb61a07 (patch)
treedf34a0ba2a8ff85eb40efa6b4317718a0946d276 /libs/ardour/ardour/latent.h
parentfa7c4718e884abf78c8b278e93580925fed82c6a (diff)
Add Signal to indicate global delay compensation status
Diffstat (limited to 'libs/ardour/ardour/latent.h')
-rw-r--r--libs/ardour/ardour/latent.h5
1 files changed, 5 insertions, 0 deletions
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<void> DisableSwitchChanged;
PBD::Signal0<void> LatencyChanged;
protected: