move MidiPortManager from AudioEngine to Session

This makes the responsibilities and ownership of non-Route related MIDI ports
more clear, and removes a few wierd bits of code. It also ensures that open/close/open
on the same session will retain connections for those MIDI ports
This commit is contained in:
Paul Davis 2013-09-05 13:22:34 -04:00
parent fee626c386
commit 1c49138e00
17 changed files with 134 additions and 108 deletions

View file

@ -60,8 +60,8 @@ GenericMidiControlProtocol::GenericMidiControlProtocol (Session& s)
, _threshold (10)
, gui (0)
{
_input_port = AudioEngine::instance()->midi_input_port ();
_output_port = AudioEngine::instance()->midi_output_port ();
_input_port = s.midi_input_port ();
_output_port = s.midi_output_port ();
do_feedback = false;
_feedback_interval = 10000; // microseconds