13
0
Fork 0

mixer strips sensitivity state varies with virtual soundcheck status

This commit is contained in:
Paul Davis 2024-05-06 14:02:57 -06:00
parent efef5531c9
commit 0dcc3381f6
2 changed files with 10 additions and 0 deletions

View File

@ -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<ARDOUR::VCA> vca)
{

View File

@ -339,6 +339,8 @@ private:
void update_track_number_visibility ();
ControlSlaveUI control_slave_ui;
void virtual_soundcheck_changed (bool onoff);
};
#endif /* __ardour_mixer_strip__ */