diff options
author | Robin Gareus <robin@gareus.org> | 2017-04-14 00:19:33 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-04-14 00:19:33 +0200 |
commit | ba2e80134bc83d50a6356903cfe7d358d3d4760c (patch) | |
tree | 9e413cbd3be9f0529a48f42e9616a8b7d1993344 /libs/ardour/route.cc | |
parent | d43a23fe28c6f54ed8ca6cde6497661c6cb73ce0 (diff) |
Convert polarity-invert from older session-formats
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 4ea5eecd13..b27d8f6847 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2480,6 +2480,11 @@ Route::set_state (const XMLNode& node, int version) set_denormal_protection (string_is_affirmative (prop->value())); } + /* convert old 3001 state */ + if ((prop = node.property (X_("phase-invert"))) != 0) { + _phase_control->set_phase_invert (boost::dynamic_bitset<> (prop->value ())); + } + if ((prop = node.property (X_("active"))) != 0) { bool yn = string_is_affirmative (prop->value()); set_active (yn, this); |