Convert polarity-invert from older session-formats
authorRobin Gareus <robin@gareus.org>
Thu, 13 Apr 2017 22:19:33 +0000 (00:19 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 13 Apr 2017 22:19:33 +0000 (00:19 +0200)
libs/ardour/route.cc

index 4ea5eecd133b06c3040b8e70d0638501b72d094c..b27d8f6847327fb84ea2b9732909b5af5d04c056 100644 (file)
@@ -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);