From baed14c17e1ff27887afdb4e661bc877081d1e16 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 23 Mar 2019 01:32:31 +0100 Subject: [PATCH] Prepare PBD::Controllable API cleanup (remove only registry user) --- libs/surfaces/generic_midi/generic_midi_control_protocol.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/surfaces/generic_midi/generic_midi_control_protocol.cc b/libs/surfaces/generic_midi/generic_midi_control_protocol.cc index 931ef5aff2..6bc2fc813a 100644 --- a/libs/surfaces/generic_midi/generic_midi_control_protocol.cc +++ b/libs/surfaces/generic_midi/generic_midi_control_protocol.cc @@ -106,8 +106,10 @@ GenericMidiControlProtocol::GenericMidiControlProtocol (Session& s) * thread */ - Controllable::StartLearning.connect_same_thread (*this, boost::bind (&GenericMidiControlProtocol::start_learning, this, _1)); +#if 0 // XXX temp. disabled for API change +Controllab:le::StartLearning.connect_same_thread (*this, boost::bind (&GenericMidiControlProtocol::start_learning, this, _1)); Controllable::StopLearning.connect_same_thread (*this, boost::bind (&GenericMidiControlProtocol::stop_learning, this, _1)); +#endif /* this signal is emitted by the process() callback, and if * send_feedback() is going to do anything, it should do it in the @@ -625,7 +627,7 @@ GenericMidiControlProtocol::set_state (const XMLNode& node, int version) if ((*niter)->get_property ("id", id)) { DEBUG_TRACE (DEBUG::GenericMidi, string_compose ("Relearned binding for session: Control ID: %1\n", id.to_s())); - Controllable* c = Controllable::by_id (id); + Controllable* c = 0; // Controllable::by_id (id); // XXX temp. disabled for API change if (c) { MIDIControllable* mc = new MIDIControllable (this, *_input_port->parser(), *c, false);