diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-29 01:23:48 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-29 02:45:37 +0200 |
commit | 4f413678365373cd49c765a40153855128b5eb89 (patch) | |
tree | 6c26ad18776263cf94d3832288cced84577b864b /gtk2_ardour/ardour_ui_options.cc | |
parent | 24aa61f08c28bc9ad65043a3c253d7dcac10eda3 (diff) |
Add Latency Control Toolbar Widgets
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_options.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index c11d71796d..4998f76303 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -279,6 +279,13 @@ ARDOUR_UI::toggle_editing_space() } void +ARDOUR_UI::toggle_latency_switch () +{ + Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action ("Main", "ToggleLatencyCompensation"); + ARDOUR::Latent::force_zero_latency (tact->get_active()); +} + +void ARDOUR_UI::setup_session_options () { _session->config.ParameterChanged.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::parameter_changed, this, _1), gui_context()); @@ -429,6 +436,8 @@ ARDOUR_UI::parameter_changed (std::string p) repack_transport_hbox (); } else if (p == "show-toolbar-selclock") { repack_transport_hbox (); + } else if (p == "show-toolbar-latency") { + repack_transport_hbox (); } else if (p == "show-editor-meter") { repack_transport_hbox (); } else if (p == "show-secondary-clock") { |