mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
use Surface::reset() when deleting MackieControlProtocol, rather than sending lots of messages.
This may be a bit "strong" because on the MCU Pro (at least) it causes a fader recalibration.
This commit is contained in:
parent
ccf505c3a2
commit
2cdfeda884
1 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,10 @@ MackieControlProtocol::MackieControlProtocol (Session& session)
|
|||
MackieControlProtocol::~MackieControlProtocol()
|
||||
{
|
||||
DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::~MackieControlProtocol init\n");
|
||||
|
||||
for (Surfaces::const_iterator si = surfaces.begin(); si != surfaces.end(); ++si) {
|
||||
(*si)->reset ();
|
||||
}
|
||||
|
||||
DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::~MackieControlProtocol drop_connections ()\n");
|
||||
drop_connections ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue