mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 14:46:34 +01:00
Convert polarity-invert from older session-formats
This commit is contained in:
parent
d43a23fe28
commit
ba2e80134b
1 changed files with 5 additions and 0 deletions
|
|
@ -2480,6 +2480,11 @@ Route::set_state (const XMLNode& node, int version)
|
||||||
set_denormal_protection (string_is_affirmative (prop->value()));
|
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) {
|
if ((prop = node.property (X_("active"))) != 0) {
|
||||||
bool yn = string_is_affirmative (prop->value());
|
bool yn = string_is_affirmative (prop->value());
|
||||||
set_active (yn, this);
|
set_active (yn, this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue