Add Signal to indicate global delay compensation status
This commit is contained in:
parent
fa7c4718e8
commit
430dae6250
@ -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:
|
||||
|
@ -23,6 +23,7 @@
|
||||
using namespace ARDOUR;
|
||||
|
||||
bool ARDOUR::Latent::_zero_latency = false;
|
||||
PBD::Signal0<void> Latent::DisableSwitchChanged;
|
||||
|
||||
Latent::Latent ()
|
||||
: HasLatency ()
|
||||
|
@ -449,6 +449,7 @@ Session::Session (AudioEngine &eng,
|
||||
EndTimeChanged.connect_same_thread (*this, boost::bind (&Session::end_time_changed, this, _1));
|
||||
|
||||
LatentSend::ChangedLatency.connect_same_thread (*this, boost::bind (&Session::send_latency_compensation_change, this));
|
||||
Latent::DisableSwitchChanged.connect_same_thread (*this, boost::bind (&Session::queue_latency_recompute, this));
|
||||
|
||||
emit_thread_start ();
|
||||
auto_connect_thread_start ();
|
||||
|
Loading…
Reference in New Issue
Block a user