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) {
|
static void force_zero_latency (bool en) {
|
||||||
|
if (_zero_latency == en) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
_zero_latency = en;
|
_zero_latency = en;
|
||||||
|
DisableSwitchChanged (); /* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool zero_latency () {
|
static bool zero_latency () {
|
||||||
return _zero_latency;
|
return _zero_latency;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static PBD::Signal0<void> DisableSwitchChanged;
|
||||||
PBD::Signal0<void> LatencyChanged;
|
PBD::Signal0<void> LatencyChanged;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
using namespace ARDOUR;
|
using namespace ARDOUR;
|
||||||
|
|
||||||
bool ARDOUR::Latent::_zero_latency = false;
|
bool ARDOUR::Latent::_zero_latency = false;
|
||||||
|
PBD::Signal0<void> Latent::DisableSwitchChanged;
|
||||||
|
|
||||||
Latent::Latent ()
|
Latent::Latent ()
|
||||||
: HasLatency ()
|
: HasLatency ()
|
||||||
|
@ -449,6 +449,7 @@ Session::Session (AudioEngine &eng,
|
|||||||
EndTimeChanged.connect_same_thread (*this, boost::bind (&Session::end_time_changed, this, _1));
|
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));
|
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 ();
|
emit_thread_start ();
|
||||||
auto_connect_thread_start ();
|
auto_connect_thread_start ();
|
||||||
|
Loading…
Reference in New Issue
Block a user