diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/solo_control.h | 2 | ||||
-rw-r--r-- | libs/ardour/solo_control.cc | 6 |
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 (); +} |