diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-05 13:22:34 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-05 13:22:34 -0400 |
commit | 1c49138e0099db37931b34fad552b43c332e187d (patch) | |
tree | b3ebb558e8b055695fff674114272f7a28792bda /libs/ardour/audioengine.cc | |
parent | fee626c386ccc23c41b7b2976c5031cd335b7587 (diff) |
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
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r-- | libs/ardour/audioengine.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 109f76334a..5b19253a26 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -71,7 +71,6 @@ AudioEngine::AudioEngine () , monitor_check_interval (INT32_MAX) , last_monitor_check (0) , _processed_frames (0) - , _pre_freewheel_mmc_enabled (false) , m_meter_thread (0) , _main_thread (0) { @@ -543,12 +542,6 @@ AudioEngine::start () return 0; } - /* if we're still connected (i.e. previously paused), no need to - * re-register ports. - */ - - bool have_ports = (!ports.reader()->empty()); - _processed_frames = 0; last_monitor_check = 0; @@ -566,11 +559,6 @@ AudioEngine::start () } } - if (!have_ports) { - PortManager::create_ports (); - _mmc.set_ports (mmc_input_port(), mmc_output_port()); - } - start_metering_thread (); Running(); /* EMIT SIGNAL */ @@ -903,13 +891,6 @@ AudioEngine::sync_callback (TransportState state, framepos_t position) void AudioEngine::freewheel_callback (bool onoff) { - if (onoff) { - _pre_freewheel_mmc_enabled = _mmc.send_enabled (); - _mmc.enable_send (false); - } else { - _mmc.enable_send (_pre_freewheel_mmc_enabled); - } - _freewheeling = onoff; } |