13
0

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:
Paul Davis 2015-10-02 21:57:12 -04:00
parent ccf505c3a2
commit 2cdfeda884

View File

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