MackieControlProtocol::~MackieControlProtocol()
{
- DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::~MackieControlProtocol\n");
+ DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::~MackieControlProtocol init\n");
+ DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::~MackieControlProtocol drop_connections ()\n");
drop_connections ();
+
+ DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::~MackieControlProtocol tear_down_gui ()\n");
tear_down_gui ();
_active = false;
/* stop event loop */
-
+ DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::~MackieControlProtocol BaseUI::quit ()\n");
BaseUI::quit ();
try {
+ DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::~MackieControlProtocol close()\n");
close();
}
catch (exception & e) {
cout << "~MackieControlProtocol caught unknown" << endl;
}
- DEBUG_TRACE (DEBUG::MackieControl, "finished ~MackieControlProtocol::MackieControlProtocol\n");
-
_instance = 0;
+
+ DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::~MackieControlProtocol done\n");
}
void
int
MackieControlProtocol::set_active (bool yn)
{
+ DEBUG_TRACE (DEBUG::MackieControl, string_compose("MackieControlProtocol::set_active init with yn: '%1'\n", yn));
+
if (yn == _active) {
return 0;
}
}
+ DEBUG_TRACE (DEBUG::MackieControl, string_compose("MackieControlProtocol::set_active done with yn: '%1'\n", yn));
+
return 0;
}
XMLNode&
MackieControlProtocol::get_state()
{
- DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::get_state\n");
+ DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::get_state init\n");
char buf[16];
// add name of protocol
node->add_property (X_("device-profile"), _device_profile.name());
node->add_property (X_("device-name"), _device_info.name());
+ DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::get_state done\n");
+
return *node;
}
switch_banks (bank, true);
}
+ DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::set_state done\n");
+
return retval;
}
, _jog_wheel (0)
, _last_master_gain_written (-0.0f)
{
- DEBUG_TRACE (DEBUG::MackieControl, "Surface::init\n");
+ DEBUG_TRACE (DEBUG::MackieControl, "Surface::Surface init\n");
_port = new SurfacePort (*this);
connect_to_signals ();
- DEBUG_TRACE (DEBUG::MackieControl, "Surface::init finish\n");
+ DEBUG_TRACE (DEBUG::MackieControl, "Surface::Surface done\n");
}
Surface::~Surface ()
{
- DEBUG_TRACE (DEBUG::MackieControl, "Surface: destructor\n");
+ DEBUG_TRACE (DEBUG::MackieControl, "Surface::~Surface init\n");
zero_all ();
delete _jog_wheel;
delete _port;
+
+ DEBUG_TRACE (DEBUG::MackieControl, "Surface::~Surface done\n");
}
const MidiByteArray&
void
Surface::setup_master ()
{
- _master_fader = dynamic_cast<Fader*> (Fader::factory (*this, _mcp.device_info().strip_cnt(), "master", *groups["master"]));
-
boost::shared_ptr<Route> m;
if ((m = _mcp.get_session().monitor_out()) == 0) {
if (!m) {
return;
}
+
+ _master_fader = dynamic_cast<Fader*> (Fader::factory (*this, _mcp.device_info().strip_cnt(), "master", *groups["master"]));
_master_fader->set_control (m->gain_control());
m->gain_control()->Changed.connect (*this, MISSING_INVALIDATOR, boost::bind (&Surface::master_gain_changed, this), ui_context());
show_two_char_display (string (2, '0'), string (2, ' '));
}
- if (_mcp.device_info().has_master_fader ()) {
+ if (_mcp.device_info().has_master_fader () && _master_fader) {
_port->write (_master_fader->zero ());
}