summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-04-21 15:10:13 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-04-21 15:10:13 +0000
commitc72bf18bf472e665a51a8383b00eb21b40805d39 (patch)
tree78b30ca967d0f7bd9b1e0de79658da2e221de7ba /libs
parent9c4cc26d775549e2815b184aed4c4948a9f69b53 (diff)
* persisting/restoring track channel settings works now
git-svn-id: svn://localhost/ardour2/branches/3.0@3276 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/midi_diskstream.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/midi_diskstream.cc b/libs/ardour/midi_diskstream.cc
index 3d9aaca93f..885435e238 100644
--- a/libs/ardour/midi_diskstream.cc
+++ b/libs/ardour/midi_diskstream.cc
@@ -1229,6 +1229,9 @@ MidiDiskstream::get_state ()
snprintf (buf, sizeof(buf), "0x%x", get_channel_mask());
node->add_property("channel_mask", buf);
+ snprintf (buf, sizeof(buf), "%d", get_force_channel());
+ node->add_property("force_channel", buf);
+
node->add_property ("playlist", _playlist->name());
snprintf (buf, sizeof(buf), "%f", _visible_speed);
@@ -1312,6 +1315,12 @@ MidiDiskstream::set_state (const XMLNode& node)
sscanf (prop->value().c_str(), "0x%x", &channel_mask);
set_channel_mask(channel_mask);
}
+
+ if ((prop = node.property ("force_channel")) != 0) {
+ int force_channel;
+ sscanf (prop->value().c_str(), "%d", &force_channel);
+ set_force_channel(force_channel);
+ }
if ((prop = node.property ("channels")) != 0) {
nchans = atoi (prop->value().c_str());