summaryrefslogtreecommitdiff
path: root/libs/ardour/mute_master.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-06-10 18:10:07 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-06-10 18:10:07 +0000
commit6e9b9294e1e7a22f31eabbafa39cee5844b3449a (patch)
tree67285ddc9b3cb0fa656ed711cc7d78cff35075d9 /libs/ardour/mute_master.cc
parentff26317d4f7904c071d7ecfb96fd84e71728f6d0 (diff)
nick m's fix for markers etc ; several tweaks for mute/solo ; rename run_in_place() as run()
git-svn-id: svn://localhost/ardour2/branches/3.0@5155 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/mute_master.cc')
-rw-r--r--libs/ardour/mute_master.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/libs/ardour/mute_master.cc b/libs/ardour/mute_master.cc
index bbf1036dd4..db4b6ca178 100644
--- a/libs/ardour/mute_master.cc
+++ b/libs/ardour/mute_master.cc
@@ -17,7 +17,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <iostream>
+
+#include "pbd/enumwriter.h"
#include "ardour/mute_master.h"
#include "ardour/rc_configuration.h"
@@ -104,11 +105,19 @@ MuteMaster::get_value () const
int
MuteMaster::set_state (const XMLNode& node)
{
+ const XMLProperty* prop;
+
+ if ((prop = node.property ("mute-point")) != 0) {
+ _mute_point = (MutePoint) string_2_enum (prop->value(), _mute_point);
+ }
+
return 0;
}
XMLNode&
MuteMaster::get_state()
{
- return *(new XMLNode (X_("MuteMaster")));
+ XMLNode* node = new XMLNode (X_("MuteMaster"));
+ node->add_property ("mute-point", enum_2_string (_mute_point));
+ return *node;
}