mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
LCXL: save assignment of 8th fader in config
This commit is contained in:
parent
b80e079353
commit
d17b6c5eea
2 changed files with 13 additions and 4 deletions
|
|
@ -101,8 +101,6 @@ LaunchControlXL::LaunchControlXL (ARDOUR::Session& s)
|
|||
session->vca_manager().VCAAdded.connect (session_connections, MISSING_INVALIDATOR, boost::bind (&LaunchControlXL::stripables_added, this), lcxl);
|
||||
|
||||
switch_bank (bank_start);
|
||||
|
||||
set_fader8master(use_fader8master);
|
||||
}
|
||||
|
||||
LaunchControlXL::~LaunchControlXL ()
|
||||
|
|
@ -150,6 +148,9 @@ LaunchControlXL::begin_using_device ()
|
|||
|
||||
in_use = true;
|
||||
|
||||
DEBUG_TRACE (DEBUG::LaunchControlXL, string_compose("use_fader8master inital value '%1'\n", use_fader8master));
|
||||
set_fader8master(use_fader8master);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -646,6 +647,10 @@ LaunchControlXL::get_state()
|
|||
child->add_child_nocopy (_async_out->get_state());
|
||||
node.add_child_nocopy (*child);
|
||||
|
||||
child = new XMLNode (X_("Configuration"));
|
||||
child->set_property ("fader8master", LaunchControlXL::use_fader8master);
|
||||
node.add_child_nocopy (*child);
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
|
|
@ -676,6 +681,11 @@ LaunchControlXL::set_state (const XMLNode & node, int version)
|
|||
}
|
||||
}
|
||||
|
||||
if ((child = node.child (X_("Configuration"))) !=0) {
|
||||
/* this should propably become a for-loop at some point */
|
||||
child->get_property ("fader8master", use_fader8master);
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue