From a743d20dce499f3b6f1418967e200beaa670b375 Mon Sep 17 00:00:00 2001 From: Sakari Bergen Date: Tue, 30 Mar 2010 15:25:28 +0000 Subject: Fix split channel export (which was broken during export refactoring) Possibly fixes bug #3052 Also clarify some comments which weren't quite clear :) git-svn-id: svn://localhost/ardour2/branches/3.0@6808 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/export_channel_configuration.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'libs/ardour/export_channel_configuration.cc') diff --git a/libs/ardour/export_channel_configuration.cc b/libs/ardour/export_channel_configuration.cc index cc68356d82..eb3b2838c6 100644 --- a/libs/ardour/export_channel_configuration.cc +++ b/libs/ardour/export_channel_configuration.cc @@ -99,4 +99,22 @@ ExportChannelConfiguration::all_channels_have_ports () const return true; } +void +ExportChannelConfiguration::configurations_for_files (std::list > & configs) +{ + configs.clear (); + + if (!split) { + configs.push_back (shared_from_this ()); + return; + } + + for (ChannelList::const_iterator it = channels.begin (); it != channels.end (); ++it) { + boost::shared_ptr config (new ExportChannelConfiguration (session)); + config->set_name (_name); + config->register_channel (*it); + configs.push_back (config); + } +} + } // namespace ARDOUR -- cgit v1.2.3