no-strobe changes for clocks
This commit is contained in:
parent
6b5b63240b
commit
036596ba3f
@ -2204,6 +2204,15 @@ ARDOUR_UI::update_clocks ()
|
||||
void
|
||||
ARDOUR_UI::start_clocking ()
|
||||
{
|
||||
if (ARDOUR_COMMAND_LINE::no_strobe) {
|
||||
if (!_session) {
|
||||
return;
|
||||
}
|
||||
_session->TransportStateChange.connect (clock_state_connection, MISSING_INVALIDATOR, sigc::mem_fun (*this, &ARDOUR_UI::update_clocks), gui_context());
|
||||
_session->Located.connect (clock_state_connection, MISSING_INVALIDATOR, sigc::mem_fun (*this, &ARDOUR_UI::update_clocks), gui_context());
|
||||
return;
|
||||
}
|
||||
|
||||
if (UIConfiguration::instance().get_super_rapid_clock_update()) {
|
||||
clock_signal_connection = Timers::fps_connect (sigc::mem_fun(*this, &ARDOUR_UI::update_clocks));
|
||||
} else {
|
||||
@ -2214,7 +2223,11 @@ ARDOUR_UI::start_clocking ()
|
||||
void
|
||||
ARDOUR_UI::stop_clocking ()
|
||||
{
|
||||
clock_signal_connection.disconnect ();
|
||||
if (ARDOUR_COMMAND_LINE::no_strobe) {
|
||||
clock_state_connection.drop_connections ();
|
||||
} else {
|
||||
clock_signal_connection.disconnect ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -953,6 +953,8 @@ private:
|
||||
|
||||
void ask_about_scratch_deletion ();
|
||||
bool nsm_first_session_opened;
|
||||
|
||||
PBD::ScopedConnectionList clock_state_connection;
|
||||
};
|
||||
|
||||
#endif /* __ardour_gui_h__ */
|
||||
|
Loading…
Reference in New Issue
Block a user