13
0

Convert rec-enable of old sessions

This commit is contained in:
Robin Gareus 2024-06-11 23:57:13 +02:00
parent 6bf6c82f7a
commit 827be736ae
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 7 additions and 0 deletions

View File

@ -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) {

View File

@ -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);
}
}
}
}