mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
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:
parent
fee626c386
commit
1c49138e00
17 changed files with 134 additions and 108 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue