From 76314c4808e7cf6d04941c7eb6991f13383973ff Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 2 Apr 2024 18:05:26 -0600 Subject: [PATCH] no monitor section for livetrax plus minor code rearrangement --- libs/ardour/session.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 3532dee7f5..ae8ec50aef 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1119,7 +1119,9 @@ Session::remove_monitor_section () void Session::add_monitor_section () { - RouteList rl; + if (Profile->get_livetrax()) { + return; + } if (!_engine.running()) { error << _("Cannot create monitor section while the engine is offline.") << endmsg; @@ -1130,6 +1132,7 @@ Session::add_monitor_section () return; } + std::shared_ptr r (new Route (*this, _("Monitor"), PresentationInfo::MonitorOut, DataType::AUDIO)); if (r->init ()) { @@ -1147,6 +1150,7 @@ Session::add_monitor_section () return; } + RouteList rl; rl.push_back (r); add_routes (rl, false, false, 0);