From ba2e80134bc83d50a6356903cfe7d358d3d4760c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 14 Apr 2017 00:19:33 +0200 Subject: Convert polarity-invert from older session-formats --- libs/ardour/route.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/ardour/route.cc') 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); -- cgit v1.2.3