no monitor section for livetrax plus minor code rearrangement

This commit is contained in:
Paul Davis 2024-04-02 18:05:26 -06:00
parent 1a29e6c84d
commit 3a443af5ed
1 changed files with 5 additions and 1 deletions

View File

@ -1118,7 +1118,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;
@ -1129,6 +1131,7 @@ Session::add_monitor_section ()
return;
}
std::shared_ptr<Route> r (new Route (*this, _("Monitor"), PresentationInfo::MonitorOut, DataType::AUDIO));
if (r->init ()) {
@ -1146,6 +1149,7 @@ Session::add_monitor_section ()
return;
}
RouteList rl;
rl.push_back (r);
add_routes (rl, false, false, 0);