force IFS=/ when calling path_expand, so that whitespace in paths doesn't cause worde...
[ardour.git] / libs / ardour / export_channel_configuration.cc
index cc68356d824c8e7419c7b1a018b44c03e9224ab0..31729e171b2f4bac3d7637ee30521b5e605fe518 100644 (file)
@@ -99,4 +99,22 @@ ExportChannelConfiguration::all_channels_have_ports () const
        return true;
 }
 
+void
+ExportChannelConfiguration::configurations_for_files (std::list<boost::shared_ptr<ExportChannelConfiguration> > & 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<ExportChannelConfiguration> config (new ExportChannelConfiguration (session));
+               config->set_name (_name);
+               config->register_channel (*it);
+               configs.push_back (config);
+       }
+}
+
 } // namespace ARDOUR