use new PBD::Controllable API to correctly save solo and mute controls, which may...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 6 Feb 2017 15:42:35 +0000 (16:42 +0100)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 6 Feb 2017 15:49:08 +0000 (16:49 +0100)
libs/ardour/ardour/mute_control.h
libs/ardour/ardour/solo_control.h

index 909f0cbf02ab7d394dbffbe9f6a424d3ca1fbc09..399b708d4351803debd4136bf76df0ac6a1f1f28 100644 (file)
@@ -39,6 +39,7 @@ class LIBARDOUR_API MuteControl : public SlavableAutomationControl
        MuteControl (Session& session, std::string const& name, Muteable&);
 
        double get_value () const;
+       double get_save_value() const { return muted_by_self(); }
 
        /* Export additional API so that objects that only get access
         * to a Controllable/AutomationControl can do more fine-grained
index 3f0f522fc3589d4bd54778893f5162c49c9fd538..cc8698358262835600d0a036b951f57e446187c2 100644 (file)
@@ -38,6 +38,7 @@ class LIBARDOUR_API SoloControl : public SlavableAutomationControl
        SoloControl (Session& session, std::string const & name, Soloable& soloable, Muteable& m);
 
        double get_value () const;
+       double get_save_value() const { return self_soloed(); }
 
        bool can_solo() const;