Convert rec-enable of old sessions
This commit is contained in:
parent
6bf6c82f7a
commit
827be736ae
@ -2898,6 +2898,8 @@ Route::set_state (const XMLNode& node, int version)
|
||||
_volume_control->set_state (*child, version);
|
||||
} else if (control_name == _phase_control->name()) {
|
||||
_phase_control->set_state (*child, version);
|
||||
} else if (control_name == "recenable" && version <= 3002) {
|
||||
/* ignore (now "rec-enable"), handled by Track */
|
||||
} else {
|
||||
Evoral::Parameter p = EventTypeMap::instance().from_symbol (control_name);
|
||||
if (p.type () >= MidiCCAutomation && p.type () < MidiSystemExclusiveAutomation) {
|
||||
|
@ -268,6 +268,11 @@ Track::set_state (const XMLNode& node, int version)
|
||||
_record_safe_control->set_state (*child, version);
|
||||
} else if (name == _monitoring_control->name()) {
|
||||
_monitoring_control->set_state (*child, version);
|
||||
} else if (name == "recenable" && version <= 3002) {
|
||||
float value;
|
||||
if (child->get_property ("value", value)) {
|
||||
_record_enable_control->set_value (value, Controllable::NoGroup);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user