diff options
author | Robin Gareus <robin@gareus.org> | 2019-03-23 01:32:31 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-03-23 01:41:55 +0100 |
commit | baed14c17e1ff27887afdb4e661bc877081d1e16 (patch) | |
tree | 0faf6a9c08ab948b8cf7764c17e2434eed556570 /libs/surfaces/generic_midi | |
parent | 9a1c22d7e15b428868024df6883bcaf38a16b874 (diff) |
Prepare PBD::Controllable API cleanup (remove only registry user)
Diffstat (limited to 'libs/surfaces/generic_midi')
-rw-r--r-- | libs/surfaces/generic_midi/generic_midi_control_protocol.cc | 6 |
1 files 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); |