no monitor section for livetrax plus minor code rearrangement
This commit is contained in:
parent
9704a3d9d1
commit
76314c4808
|
@ -1119,7 +1119,9 @@ Session::remove_monitor_section ()
|
||||||
void
|
void
|
||||||
Session::add_monitor_section ()
|
Session::add_monitor_section ()
|
||||||
{
|
{
|
||||||
RouteList rl;
|
if (Profile->get_livetrax()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!_engine.running()) {
|
if (!_engine.running()) {
|
||||||
error << _("Cannot create monitor section while the engine is offline.") << endmsg;
|
error << _("Cannot create monitor section while the engine is offline.") << endmsg;
|
||||||
|
@ -1130,6 +1132,7 @@ Session::add_monitor_section ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::shared_ptr<Route> r (new Route (*this, _("Monitor"), PresentationInfo::MonitorOut, DataType::AUDIO));
|
std::shared_ptr<Route> r (new Route (*this, _("Monitor"), PresentationInfo::MonitorOut, DataType::AUDIO));
|
||||||
|
|
||||||
if (r->init ()) {
|
if (r->init ()) {
|
||||||
|
@ -1147,6 +1150,7 @@ Session::add_monitor_section ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RouteList rl;
|
||||||
rl.push_back (r);
|
rl.push_back (r);
|
||||||
add_routes (rl, false, false, 0);
|
add_routes (rl, false, false, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user