summaryrefslogtreecommitdiff
path: root/libs/ardour/session_export.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-09-05 13:22:34 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-09-05 13:22:34 -0400
commit1c49138e0099db37931b34fad552b43c332e187d (patch)
treeb3ebb558e8b055695fff674114272f7a28792bda /libs/ardour/session_export.cc
parentfee626c386ccc23c41b7b2976c5031cd335b7587 (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/session_export.cc')
-rw-r--r--libs/ardour/session_export.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/session_export.cc b/libs/ardour/session_export.cc
index ab37e915bf..62eb61ab83 100644
--- a/libs/ardour/session_export.cc
+++ b/libs/ardour/session_export.cc
@@ -92,8 +92,8 @@ Session::pre_export ()
/* disable MMC output early */
- _pre_export_mmc_enabled = AudioEngine::instance()->mmc().send_enabled ();
- AudioEngine::instance()->mmc().enable_send (false);
+ _pre_export_mmc_enabled = _mmc->send_enabled ();
+ _mmc->enable_send (false);
return 0;
}
@@ -236,7 +236,7 @@ Session::finalize_audio_export ()
export_freewheel_connection.disconnect();
- AudioEngine::instance()->mmc().enable_send (_pre_export_mmc_enabled);
+ _mmc->enable_send (_pre_export_mmc_enabled);
/* maybe write CUE/TOC */