From 40ef5f3b153bbc8ee0c54977f4cccb1343c01858 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 3 Jun 2024 22:24:38 +0200 Subject: [PATCH] Fix repeat of stem-export of stereo channels Restoring the export profile state previously added a new Export Processor for each state for each channel to the same route. This fixes silent stem export channels after an initial correct stem export (which saves ExportChannelConfiguration) --- libs/ardour/export_channel.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/export_channel.cc b/libs/ardour/export_channel.cc index efe148a272..5085fb9217 100644 --- a/libs/ardour/export_channel.cc +++ b/libs/ardour/export_channel.cc @@ -385,6 +385,11 @@ RouteExportChannel::create_from_route (std::list& result, std: void RouteExportChannel::create_from_state (std::list& result, Session& s, XMLNode* node) { + uint32_t chn; + if (node->get_property ("number", chn) && chn > 1) { + /* create_from_route adds ExportChannel for all channels of a given Route */ + return; + } XMLNode* xml_route = node->child ("Route"); if (!xml_route) { return;