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
@ -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…
Reference in New Issue
Block a user