projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d43a23f
)
Convert polarity-invert from older session-formats
author
Robin Gareus
<robin@gareus.org>
Thu, 13 Apr 2017 22:19:33 +0000
(
00:19
+0200)
committer
Robin Gareus
<robin@gareus.org>
Thu, 13 Apr 2017 22:19:33 +0000
(
00:19
+0200)
libs/ardour/route.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/route.cc
b/libs/ardour/route.cc
index 4ea5eecd133b06c3040b8e70d0638501b72d094c..b27d8f6847327fb84ea2b9732909b5af5d04c056 100644
(file)
--- 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);