summaryrefslogtreecommitdiff
path: root/libs/ardour/vca.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-05-16 07:30:28 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:42 -0400
commite0ff70cf86c01c42f98faf8b0eaf1a8ccf867946 (patch)
treedcb5ac7037e3b41d850930ea0a1759d79f8ca82a /libs/ardour/vca.cc
parentbae9474e9f04e324b1a2776b0fa9faefb5e6f0c2 (diff)
first vaguely working version using PresentationInfo
remote control ID and "order keys" have been removed.
Diffstat (limited to 'libs/ardour/vca.cc')
-rw-r--r--libs/ardour/vca.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/vca.cc b/libs/ardour/vca.cc
index 3310c924cb..d3c614debf 100644
--- a/libs/ardour/vca.cc
+++ b/libs/ardour/vca.cc
@@ -65,7 +65,7 @@ VCA::get_next_vca_number ()
}
VCA::VCA (Session& s, uint32_t num, const string& name)
- : Stripable (s, name)
+ : Stripable (s, name, PresentationInfo (num, PresentationInfo::VCA))
, Muteable (s, name)
, Automatable (s)
, _number (num)
@@ -106,6 +106,8 @@ VCA::get_state ()
node->add_property (X_("name"), _name);
node->add_property (X_("number"), _number);
+ Stripable::add_state (*node);
+
node->add_child_nocopy (_gain_control->get_state());
node->add_child_nocopy (_solo_control->get_state());
node->add_child_nocopy (_mute_control->get_state());
@@ -121,6 +123,8 @@ VCA::set_state (XMLNode const& node, int version)
{
XMLProperty const* prop;
+ Stripable::set_state (node, version);
+
if ((prop = node.property ("name")) != 0) {
set_name (prop->value());
}