summaryrefslogtreecommitdiff
path: root/gtk2_ardour/foldback_strip.cc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2019-09-15 14:48:09 -0700
committerLen Ovens <len@ovenwerks.net>2019-09-15 14:48:09 -0700
commitabdb7b81c6c7ce19c3d3617bd31a621b16e2feb2 (patch)
treefcd3192f40abc993643d37b474c8357867d7c3b2 /gtk2_ardour/foldback_strip.cc
parentec35afef38f22a17ea022c1db52b49d1e0a0ada9 (diff)
Foldback gui: desensitize solo button when in SIP mode
Because foldback by design goes to physical outputs rather than master or monitor, SIP solo does not work or make sense. PFL/AFL allow a foldback to be rough adjusted using the control room monitoring. A soloed Foldback bus will be released when the foldback strip is switched to a different foldback bus
Diffstat (limited to 'gtk2_ardour/foldback_strip.cc')
-rw-r--r--gtk2_ardour/foldback_strip.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/foldback_strip.cc b/gtk2_ardour/foldback_strip.cc
index c3b91e7479..b0a27a9ca3 100644
--- a/gtk2_ardour/foldback_strip.cc
+++ b/gtk2_ardour/foldback_strip.cc
@@ -535,6 +535,9 @@ FoldbackStrip::set_route (boost::shared_ptr<Route> rt)
return;
}
+ if (_route) {
+ _route->solo_control()->set_value (0.0, Controllable::NoGroup);
+ }
RouteUI::set_route (rt);
@@ -604,6 +607,7 @@ FoldbackStrip::set_route (boost::shared_ptr<Route> rt)
map_frozen();
show ();
+ set_button_names ();
}
// predicate for sort call in get_sorted_stripables
@@ -1459,8 +1463,13 @@ FoldbackStrip::set_button_names ()
solo_button->set_visual_state (Gtkmm2ext::VisualState (solo_button->visual_state() & ~Gtkmm2ext::Insensitive));
}
if (!Config->get_solo_control_is_listen_control()) {
+ solo_button->set_sensitive (false);
solo_button->set_text (_("Solo"));
+ UI::instance()->set_tip (solo_button, _("Foldback Bus solo not possible in SIP mode"), "");
+ solo_button->set_visual_state (Gtkmm2ext::VisualState (Gtkmm2ext::Insensitive));
} else {
+ solo_button->set_sensitive (true);
+ UI::instance()->set_tip (solo_button, _("Mute other (non-soloed) tracks"), "");
switch (Config->get_listen_position()) {
case AfterFaderListen:
solo_button->set_text (_("AFL"));