From 814eecc5ffdc4c8c12c5fe57ab8707a3c4f47152 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 12 Jun 2024 20:18:25 +0200 Subject: [PATCH] L: auto-connect WTL session tracks to master This is needed when loading sessions that were saved while "Direct Out" was active. --- libs/ardour/session_state.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index a1c6fec416..53a3e8aeb6 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -2104,6 +2104,17 @@ Session::set_state (const XMLNode& node, int version) } } + if (version == 3001 && Profile->get_livetrax() && _master_out) { + std::shared_ptr b = _master_out->input()->bundle(); + std::shared_ptr r = routes.reader(); + for (auto const& i : *r) { + std::shared_ptr tr = std::dynamic_pointer_cast (i); + if (tr) { + tr->output()->connect_ports_to_bundle (b, true, true, this); + } + } + } + if ((child = find_named_node (node, X_("Selection")))) { _selection->set_state (*child, version); }