Rename internal sends when their send-to bus changes.
[ardour.git] / libs / ardour / ardour / mute_master.h
index d55de0c856d912055cdb31058b39a5661e75a0e7..ef65e69aba6b70b4c088c12203513c8864dd6175 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2009 Paul Davis 
+    Copyright (C) 2009 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -37,7 +37,9 @@ class MuteMaster : public AutomationControl
                Listen    = 0x4,
                Main      = 0x8
        };
-       
+
+       static const MutePoint AllPoints;
+
        MuteMaster (Session& s, const std::string& name);
        ~MuteMaster() {}
 
@@ -47,8 +49,8 @@ class MuteMaster : public AutomationControl
        bool muted_main () const      { return _mute_point & Main; }
 
        bool muted_at (MutePoint mp) const { return _mute_point & mp; }
-       bool muted() const { return _mute_point != MutePoint (0) && get_value() != 0.0; }
-       
+       bool muted() const { return _mute_point != MutePoint (0); }
+
        gain_t mute_gain_at (MutePoint) const;
 
        void clear_mute ();
@@ -65,7 +67,7 @@ class MuteMaster : public AutomationControl
        sigc::signal<void> MutePointChanged;
 
        XMLNode& get_state();
-       int set_state(const XMLNode& node);
+       int set_state(const XMLNode&, int version);
 
   private:
        AutomationList* _automation;