mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
Convert v5 send state-state
This commit is contained in:
parent
300063c8b9
commit
dd2c6e7cf1
1 changed files with 23 additions and 1 deletions
|
|
@ -305,6 +305,26 @@ Send::set_state (const XMLNode& node, int version)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (version <= 6000) {
|
if (version <= 6000) {
|
||||||
|
XMLNode const* nn = &node;
|
||||||
|
|
||||||
|
#ifdef MIXBUS
|
||||||
|
/* This was also broken in mixbus 6.0 */
|
||||||
|
if (version <= 6000)
|
||||||
|
#else
|
||||||
|
/* version 5: Gain Control was owned by the Amp */
|
||||||
|
if (version < 6000)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
XMLNode* processor = node.child ("Processor");
|
||||||
|
if (processor) {
|
||||||
|
nn = processor;
|
||||||
|
if ((gain_node = nn->child (Controllable::xml_node_name.c_str ())) != 0) {
|
||||||
|
_gain_control->set_state (*gain_node, version);
|
||||||
|
_gain_control->set_flags (Controllable::Flag ((int)_gain_control->flags() | Controllable::InlineControl));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* convert GainAutomation to BusSendLevel
|
/* convert GainAutomation to BusSendLevel
|
||||||
*
|
*
|
||||||
* (early Ardour 6.0-pre0 and Mixbus 6.0 used "BusSendLevel"
|
* (early Ardour 6.0-pre0 and Mixbus 6.0 used "BusSendLevel"
|
||||||
|
|
@ -317,9 +337,11 @@ Send::set_state (const XMLNode& node, int version)
|
||||||
* -> Automatable::set_automation_xml_state()
|
* -> Automatable::set_automation_xml_state()
|
||||||
*/
|
*/
|
||||||
XMLNodeList nlist;
|
XMLNodeList nlist;
|
||||||
XMLNode* automation = node.child ("Automation");
|
XMLNode* automation = nn->child ("Automation");
|
||||||
if (automation) {
|
if (automation) {
|
||||||
nlist = automation->children();
|
nlist = automation->children();
|
||||||
|
} else if (0 != (automation = node.child ("Automation"))) {
|
||||||
|
nlist = automation->children();
|
||||||
}
|
}
|
||||||
for (XMLNodeIterator i = nlist.begin(); i != nlist.end(); ++i) {
|
for (XMLNodeIterator i = nlist.begin(); i != nlist.end(); ++i) {
|
||||||
if ((*i)->name() != "AutomationList") {
|
if ((*i)->name() != "AutomationList") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue