13
0

use new PBD::Controllable API to correctly save solo and mute controls, which may be slaved to a master

This commit is contained in:
Paul Davis 2017-02-06 16:42:35 +01:00
parent 5d5d9b8114
commit 7a1404ff8b
2 changed files with 2 additions and 0 deletions

View 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

View 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;