diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 9c6525e0af..8f26eb1e89 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -429,6 +429,7 @@ MixerStrip::init () UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &MixerStrip::parameter_changed)); Config->ParameterChanged.connect (_config_connection, invalidator (*this), boost::bind (&MixerStrip::parameter_changed, this, _1), gui_context()); _session->config.ParameterChanged.connect (_config_connection, invalidator (*this), boost::bind (&MixerStrip::parameter_changed, this, _1), gui_context()); + _session->VirtualSoundCheckChanged.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&MixerStrip::virtual_soundcheck_changed, this, _1), gui_context()); //watch for mouse enter/exit so we can do some stuff signal_enter_notify_event().connect (sigc::mem_fun(*this, &MixerStrip::mixer_strip_enter_event )); @@ -449,6 +450,13 @@ MixerStrip::~MixerStrip () delete route_ops_menu; } +void +MixerStrip::virtual_soundcheck_changed (bool onoff) +{ + gpm.get_gain_slider().set_sensitive (!onoff); + panners.set_sensitive (!onoff); +} + void MixerStrip::vca_assign (std::shared_ptr vca) { diff --git a/gtk2_ardour/mixer_strip.h b/gtk2_ardour/mixer_strip.h index 14c0a85af4..ee9f8071a7 100644 --- a/gtk2_ardour/mixer_strip.h +++ b/gtk2_ardour/mixer_strip.h @@ -339,6 +339,8 @@ private: void update_track_number_visibility (); ControlSlaveUI control_slave_ui; + + void virtual_soundcheck_changed (bool onoff); }; #endif /* __ardour_mixer_strip__ */