mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
change Generic MIDI control so that it handles a SendFeedback request synchronously within a process callback
This commit is contained in:
parent
89adeb2a9f
commit
afabc09fbf
1 changed files with 2 additions and 4 deletions
|
|
@ -80,16 +80,14 @@ GenericMidiControlProtocol::GenericMidiControlProtocol (Session& s)
|
|||
Controllable::CreateBinding.connect_same_thread (*this, boost::bind (&GenericMidiControlProtocol::create_binding, this, _1, _2, _3));
|
||||
Controllable::DeleteBinding.connect_same_thread (*this, boost::bind (&GenericMidiControlProtocol::delete_binding, this, _1));
|
||||
|
||||
Session::SendFeedback.connect (*this, MISSING_INVALIDATOR, boost::bind (&GenericMidiControlProtocol::send_feedback, this), midi_ui_context());;
|
||||
#if 0
|
||||
/* XXXX SOMETHING GOES WRONG HERE (april 2012) - STILL DEBUGGING */
|
||||
/* this signal is emitted by the process() callback, and if
|
||||
* send_feedback() is going to do anything, it should do it in the
|
||||
* context of the process() callback itself.
|
||||
*/
|
||||
|
||||
Session::SendFeedback.connect_same_thread (*this, boost::bind (&GenericMidiControlProtocol::send_feedback, this));
|
||||
#endif
|
||||
//Session::SendFeedback.connect (*this, MISSING_INVALIDATOR, boost::bind (&GenericMidiControlProtocol::send_feedback, this), midi_ui_context());;
|
||||
|
||||
/* this one is cross-thread */
|
||||
|
||||
Route::RemoteControlIDChange.connect (*this, MISSING_INVALIDATOR, boost::bind (&GenericMidiControlProtocol::reset_controllables, this), midi_ui_context());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue