Track mode needs to be set before loading Track state
parent Track::set_state() sets the diskstream and ::set_diskstream() depends on the track mode. fixes Tape tracks on session load
This commit is contained in:
parent
ba0f7482c3
commit
e3a2bc6a36
|
@ -187,16 +187,16 @@ AudioTrack::set_state (const XMLNode& node, int version)
|
||||||
{
|
{
|
||||||
const XMLProperty *prop;
|
const XMLProperty *prop;
|
||||||
|
|
||||||
if (Track::set_state (node, version)) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((prop = node.property (X_("mode"))) != 0) {
|
if ((prop = node.property (X_("mode"))) != 0) {
|
||||||
_mode = TrackMode (string_2_enum (prop->value(), _mode));
|
_mode = TrackMode (string_2_enum (prop->value(), _mode));
|
||||||
} else {
|
} else {
|
||||||
_mode = Normal;
|
_mode = Normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Track::set_state (node, version)) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
pending_state = const_cast<XMLNode*> (&node);
|
pending_state = const_cast<XMLNode*> (&node);
|
||||||
|
|
||||||
if (_session.state_of_the_state() & Session::Loading) {
|
if (_session.state_of_the_state() & Session::Loading) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user