Update vari-speed availability, depending on port-resampler
This commit is contained in:
parent
19b8069720
commit
51e93399ba
@ -186,6 +186,8 @@ ShuttleControl::ShuttleControl ()
|
||||
}
|
||||
|
||||
Config->ParameterChanged.connect (parameter_connection, MISSING_INVALIDATOR, boost::bind (&ShuttleControl::parameter_changed, this, _1), gui_context ());
|
||||
Port::ResamplerQualityChanged.connect (port_connection, MISSING_INVALIDATOR, boost::bind (&ShuttleControl::parameter_changed, this, "external-sync"), gui_context ());
|
||||
|
||||
UIConfiguration::instance ().ColorsChanged.connect (sigc::mem_fun (*this, &ShuttleControl::set_colors));
|
||||
Timers::blink_connect (sigc::mem_fun (*this, &ShuttleControl::do_blink));
|
||||
|
||||
@ -768,7 +770,7 @@ ShuttleControl::parameter_changed (std::string p)
|
||||
delete shuttle_context_menu;
|
||||
shuttle_context_menu = 0;
|
||||
} else if (p == "external-sync") {
|
||||
if (_session->config.get_external_sync() || !Port::can_varispeed ()) {
|
||||
if (!_session || _session->config.get_external_sync() || !Port::can_varispeed ()) {
|
||||
_vari_dialog.hide ();
|
||||
_vari_button.set_sensitive (false);
|
||||
if (shuttle_grabbed) {
|
||||
|
@ -120,6 +120,7 @@ protected:
|
||||
cairo_pattern_t* shine_pattern;
|
||||
PBD::microseconds_t last_shuttle_request;
|
||||
PBD::ScopedConnection parameter_connection;
|
||||
PBD::ScopedConnection port_connection;
|
||||
ShuttleInfoButton _info_button;
|
||||
Gtk::Menu* shuttle_context_menu;
|
||||
ArdourWidgets::BindingProxy binding_proxy;
|
||||
|
Loading…
Reference in New Issue
Block a user