summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-05-21 12:44:41 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:44 -0400
commitf022784014d4ae1b3bb75a1c02f206ba8a28d7d6 (patch)
tree7582499a02aa75b8d7c2c7a8173daa2b1ba54302 /libs
parent2380bbae5bd77e39020ef779f1ae4a3255ca1e8a (diff)
convert editor routes code to use Stripable
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/ardour/solo_control.h2
-rw-r--r--libs/ardour/solo_control.cc6
2 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/solo_control.h b/libs/ardour/ardour/solo_control.h
index 24b8353dc1..89aa16d022 100644
--- a/libs/ardour/ardour/solo_control.h
+++ b/libs/ardour/ardour/solo_control.h
@@ -39,6 +39,8 @@ class LIBARDOUR_API SoloControl : public SlavableAutomationControl
double get_value () const;
+ bool can_solo() const;
+
/* Export additional API so that objects that only get access
* to a Controllable/AutomationControl can do more fine-grained
* operations with respect to solo. Obviously, they would need
diff --git a/libs/ardour/solo_control.cc b/libs/ardour/solo_control.cc
index f0dd07d628..9cf3c20599 100644
--- a/libs/ardour/solo_control.cc
+++ b/libs/ardour/solo_control.cc
@@ -328,3 +328,9 @@ SoloControl::pre_remove_master (boost::shared_ptr<AutomationControl> m)
_transition_into_solo = 0;
}
}
+
+bool
+SoloControl::can_solo () const
+{
+ return _soloable.can_solo ();
+}