2 Copyright (C) 2008 Paul Davis
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #include "pbd/gstdio_compat.h"
28 #include <glibmm/fileutils.h>
29 #include <glibmm/miscutils.h>
31 #include "pbd/enumwriter.h"
32 #include "pbd/xml++.h"
33 #include "pbd/convert.h"
35 #include "ardour/export_profile_manager.h"
36 #include "ardour/export_format_specification.h"
37 #include "ardour/search_paths.h"
38 #include "ardour/export_timespan.h"
39 #include "ardour/export_channel_configuration.h"
40 #include "ardour/export_filename.h"
41 #include "ardour/export_preset.h"
42 #include "ardour/export_handler.h"
43 #include "ardour/export_failed.h"
44 #include "ardour/directory_names.h"
45 #include "ardour/filename_extensions.h"
46 #include "ardour/profile.h"
47 #include "ardour/route.h"
48 #include "ardour/session.h"
49 #include "ardour/broadcast_info.h"
60 ExportProfileManager::ExportProfileManager (Session & s, ExportType type)
62 , handler (s.get_export_handler())
65 , ranges (new LocationList ())
66 , single_range_mode (false)
68 , format_list (new FormatList ())
72 xml_node_name = X_("ExportProfile");
75 xml_node_name = X_("RangeExportProfile");
78 xml_node_name = X_("SelectionExportProfile");
81 xml_node_name = X_("RegionExportProfile");
84 xml_node_name = X_("StemExportProfile");
88 /* Initialize path variables */
90 export_config_dir = Glib::build_filename (user_config_directory(), export_dir_name);
92 search_path += export_formats_search_path();
94 info << string_compose (_("Searching for export formats in %1"), search_path.to_string()) << endmsg;
96 /* create export config directory if necessary */
98 if (!Glib::file_test (export_config_dir, Glib::FILE_TEST_EXISTS)) {
99 if (g_mkdir_with_parents (export_config_dir.c_str(), 0755) != 0) {
100 error << string_compose (_("Unable to create export format directory %1: %2"), export_config_dir, g_strerror(errno)) << endmsg;
107 /* Initialize all lists with an empty config */
110 init_timespans (dummy);
111 init_channel_configs (dummy);
112 init_formats (dummy);
113 init_filenames (dummy);
116 ExportProfileManager::~ExportProfileManager ()
118 XMLNode * extra_xml (new XMLNode (xml_node_name));
119 serialize_profile (*extra_xml);
120 session.add_extra_xml (*extra_xml);
124 ExportProfileManager::load_profile ()
126 XMLNode * extra_node = session.extra_xml (xml_node_name);
127 /* Legacy sessions used Session instant.xml for this */
129 extra_node = session.instant_xml (xml_node_name);
133 set_state (*extra_node);
135 XMLNode empty_node (xml_node_name);
136 set_state (empty_node);
141 ExportProfileManager::prepare_for_export ()
143 TimespanListPtr ts_list = timespans.front()->timespans;
145 FormatStateList::const_iterator format_it;
146 FilenameStateList::const_iterator filename_it;
149 for (TimespanList::iterator ts_it = ts_list->begin(); ts_it != ts_list->end(); ++ts_it) {
150 // ..., each format-filename pair
151 for (format_it = formats.begin(), filename_it = filenames.begin();
152 format_it != formats.end() && filename_it != filenames.end();
153 ++format_it, ++filename_it) {
155 ExportFilenamePtr filename = (*filename_it)->filename;
156 // filename->include_timespan = (ts_list->size() > 1); Disabled for now...
158 boost::shared_ptr<BroadcastInfo> b;
159 if ((*format_it)->format->has_broadcast_info()) {
160 b.reset (new BroadcastInfo);
161 b->set_from_session (session, (*ts_it)->get_start());
164 // ...and each channel config
165 filename->include_channel_config = (type == StemExport) ||
166 (channel_configs.size() > 1);
167 for(ChannelConfigStateList::iterator cc_it = channel_configs.begin(); cc_it != channel_configs.end(); ++cc_it) {
168 handler->add_export_config (*ts_it, (*cc_it)->config, (*format_it)->format, filename, b);
175 ExportProfileManager::load_preset (ExportPresetPtr preset)
179 current_preset = preset;
180 if (!preset) { return false; }
182 XMLNode const * state;
183 if ((state = preset->get_local_state())) {
184 set_local_state (*state);
185 } else { ok = false; }
187 if ((state = preset->get_global_state())) {
188 if (!set_global_state (*state)) {
191 } else { ok = false; }
197 ExportProfileManager::load_presets ()
199 vector<std::string> found = find_file (string_compose (X_("*%1"),export_preset_suffix));
201 for (vector<std::string>::iterator it = found.begin(); it != found.end(); ++it) {
202 load_preset_from_disk (*it);
207 ExportProfileManager::preset_filename (std::string const & preset_name)
209 string safe_name = legalize_for_path (preset_name);
210 return Glib::build_filename (export_config_dir, safe_name + export_preset_suffix);
214 ExportProfileManager::new_preset (string const & name)
216 // Generate new ID and do regular save
217 string filename = preset_filename (name);
218 current_preset.reset (new ExportPreset (filename, session));
219 preset_list.push_back (current_preset);
220 return save_preset (name);
224 ExportProfileManager::save_preset (string const & name)
226 string filename = preset_filename (name);
228 if (!current_preset) {
229 current_preset.reset (new ExportPreset (filename, session));
230 preset_list.push_back (current_preset);
233 XMLNode * global_preset = new XMLNode ("ExportPreset");
234 XMLNode * local_preset = new XMLNode ("ExportPreset");
236 serialize_global_profile (*global_preset);
237 serialize_local_profile (*local_preset);
239 current_preset->set_name (name);
240 current_preset->set_global_state (*global_preset);
241 current_preset->set_local_state (*local_preset);
243 current_preset->save (filename);
245 return current_preset;
249 ExportProfileManager::remove_preset ()
251 if (!current_preset) { return; }
253 for (PresetList::iterator it = preset_list.begin(); it != preset_list.end(); ++it) {
254 if (*it == current_preset) {
255 preset_list.erase (it);
260 FileMap::iterator it = preset_file_map.find (current_preset->id());
261 if (it != preset_file_map.end()) {
262 if (g_remove (it->second.c_str()) != 0) {
263 error << string_compose (_("Unable to remove export preset %1: %2"), it->second, g_strerror(errno)) << endmsg;
265 preset_file_map.erase (it);
268 current_preset->remove_local();
269 current_preset.reset();
273 ExportProfileManager::load_preset_from_disk (std::string const & path)
275 ExportPresetPtr preset (new ExportPreset (path, session));
277 /* Handle id to filename mapping and don't add duplicates to list */
279 FilePair pair (preset->id(), path);
280 if (preset_file_map.insert (pair).second) {
281 preset_list.push_back (preset);
286 ExportProfileManager::set_state (XMLNode const & root)
288 return set_global_state (root) & set_local_state (root);
292 ExportProfileManager::set_global_state (XMLNode const & root)
294 return init_filenames (root.children ("ExportFilename")) &
295 init_formats (root.children ("ExportFormat"));
299 ExportProfileManager::set_local_state (XMLNode const & root)
301 return init_timespans (root.children ("ExportTimespan")) &
302 init_channel_configs (root.children ("ExportChannelConfiguration"));
306 ExportProfileManager::serialize_profile (XMLNode & root)
308 serialize_local_profile (root);
309 serialize_global_profile (root);
313 ExportProfileManager::serialize_global_profile (XMLNode & root)
315 for (FormatStateList::iterator it = formats.begin(); it != formats.end(); ++it) {
316 root.add_child_nocopy (serialize_format (*it));
319 for (FilenameStateList::iterator it = filenames.begin(); it != filenames.end(); ++it) {
320 root.add_child_nocopy ((*it)->filename->get_state());
325 ExportProfileManager::serialize_local_profile (XMLNode & root)
327 for (TimespanStateList::iterator it = timespans.begin(); it != timespans.end(); ++it) {
328 root.add_child_nocopy (serialize_timespan (*it));
331 for (ChannelConfigStateList::iterator it = channel_configs.begin(); it != channel_configs.end(); ++it) {
332 root.add_child_nocopy ((*it)->config->get_state());
336 std::vector<std::string>
337 ExportProfileManager::find_file (std::string const & pattern)
339 vector<std::string> found;
341 find_files_matching_pattern (found, search_path, pattern);
347 ExportProfileManager::set_selection_range (framepos_t start, framepos_t end)
351 selection_range.reset (new Location (session));
352 selection_range->set_name (_("Selection"));
353 selection_range->set (start, end);
355 selection_range.reset();
358 for (TimespanStateList::iterator it = timespans.begin(); it != timespans.end(); ++it) {
359 (*it)->selection_range = selection_range;
364 ExportProfileManager::set_single_range (framepos_t start, framepos_t end, string name)
366 single_range_mode = true;
368 single_range.reset (new Location (session));
369 single_range->set_name (name);
370 single_range->set (start, end);
374 return single_range->id().to_s();
378 ExportProfileManager::init_timespans (XMLNodeList nodes)
384 for (XMLNodeList::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
385 TimespanStatePtr span = deserialize_timespan (**it);
387 timespans.push_back (span);
388 } else { ok = false; }
391 if (timespans.empty()) {
392 TimespanStatePtr state (new TimespanState (selection_range, ranges));
393 timespans.push_back (state);
395 // Add session as default selection
396 Location * session_range;
398 if (Profile->get_trx()) {
399 session_range = (session.get_play_loop () ? session.locations()->auto_loop_location () : session.locations()->session_range_location());
401 session_range = session.locations()->session_range_location();
404 if (!session_range) { return false; }
406 ExportTimespanPtr timespan = handler->add_timespan();
407 timespan->set_name (session_range->name());
408 timespan->set_range_id (session_range->id().to_s());
409 timespan->set_range (session_range->start(), session_range->end());
410 state->timespans->push_back (timespan);
417 ExportProfileManager::TimespanStatePtr
418 ExportProfileManager::deserialize_timespan (XMLNode & root)
420 TimespanStatePtr state (new TimespanState (selection_range, ranges));
421 XMLProperty const * prop;
423 XMLNodeList spans = root.children ("Range");
424 for (XMLNodeList::iterator node_it = spans.begin(); node_it != spans.end(); ++node_it) {
426 prop = (*node_it)->property ("id");
427 if (!prop) { continue; }
428 string id = prop->value();
430 Location * location = 0;
431 for (LocationList::iterator it = ranges->begin(); it != ranges->end(); ++it) {
432 if ((id == "selection" && *it == selection_range.get()) ||
433 (id == (*it)->id().to_s())) {
439 if (!location) { continue; }
441 ExportTimespanPtr timespan = handler->add_timespan();
442 timespan->set_name (location->name());
443 timespan->set_range_id (location->id().to_s());
444 timespan->set_range (location->start(), location->end());
445 state->timespans->push_back (timespan);
448 if ((prop = root.property ("format"))) {
449 state->time_format = (TimeFormat) string_2_enum (prop->value(), TimeFormat);
452 if (state->timespans->empty()) {
453 return TimespanStatePtr();
460 ExportProfileManager::serialize_timespan (TimespanStatePtr state)
462 XMLNode & root = *(new XMLNode ("ExportTimespan"));
466 for (TimespanList::iterator it = state->timespans->begin(); it != state->timespans->end(); ++it) {
467 if ((span = root.add_child ("Range"))) {
468 span->add_property ("id", (*it)->range_id());
472 root.add_property ("format", enum_2_string (state->time_format));
478 ExportProfileManager::update_ranges () {
481 if (single_range_mode) {
482 ranges->push_back (single_range.get());
488 if (session.locations()->auto_loop_location ()) {
489 ranges->push_back (session.locations()->auto_loop_location ());
493 if (session.locations()->session_range_location()) {
494 ranges->push_back (session.locations()->session_range_location());
499 if (selection_range) {
500 ranges->push_back (selection_range.get());
505 LocationList const & list (session.locations()->list());
506 for (LocationList::const_iterator it = list.begin(); it != list.end(); ++it) {
507 if ((*it)->is_range_marker()) {
508 ranges->push_back (*it);
513 ExportProfileManager::ChannelConfigStatePtr
514 ExportProfileManager::add_channel_config ()
516 ChannelConfigStatePtr ptr(new ChannelConfigState(handler->add_channel_config()));
517 channel_configs.push_back(ptr);
522 ExportProfileManager::init_channel_configs (XMLNodeList nodes)
524 channel_configs.clear();
527 ChannelConfigStatePtr config (new ChannelConfigState (handler->add_channel_config()));
528 channel_configs.push_back (config);
530 // Add master outs as default
531 if (!session.master_out()) { return false; }
533 IO* master_out = session.master_out()->output().get();
534 if (!master_out) { return false; }
536 for (uint32_t n = 0; n < master_out->n_ports().n_audio(); ++n) {
537 PortExportChannel * channel = new PortExportChannel ();
538 channel->add_port (master_out->audio (n));
540 ExportChannelPtr chan_ptr (channel);
541 config->config->register_channel (chan_ptr);
546 for (XMLNodeList::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
547 ChannelConfigStatePtr config (new ChannelConfigState (handler->add_channel_config()));
548 config->config->set_state (**it);
549 channel_configs.push_back (config);
555 ExportProfileManager::FormatStatePtr
556 ExportProfileManager::duplicate_format_state (FormatStatePtr state)
558 /* Note: The pointer in the new FormatState should point to the same format spec
559 as the original state's pointer. The spec itself should not be copied! */
561 FormatStatePtr format (new FormatState (format_list, state->format));
562 formats.push_back (format);
567 ExportProfileManager::remove_format_state (FormatStatePtr state)
569 for (FormatStateList::iterator it = formats.begin(); it != formats.end(); ++it) {
578 ExportProfileManager::save_format_to_disk (ExportFormatSpecPtr format)
580 // TODO filename character stripping
582 /* Get filename for file */
584 string new_name = format->name();
585 new_name += export_format_suffix;
587 /* make sure its legal for the filesystem */
589 new_name = legalize_for_path (new_name);
591 std::string new_path = Glib::build_filename (export_config_dir, new_name);
593 /* Check if format is on disk already */
594 FileMap::iterator it;
595 if ((it = format_file_map.find (format->id())) != format_file_map.end()) {
597 /* Check if config is not in user config dir */
598 if (Glib::path_get_dirname (it->second) != export_config_dir) {
602 XMLTree tree (new_path);
603 tree.set_root (&format->get_state());
608 /* Update file and rename if necessary */
610 XMLTree tree (it->second);
611 tree.set_root (&format->get_state());
614 if (new_name != Glib::path_get_basename (it->second)) {
615 if (g_rename (it->second.c_str(), new_path.c_str()) != 0) {
616 error << string_compose (_("Unable to rename export format %1 to %2: %3"), it->second, new_path, g_strerror(errno)) << endmsg;
621 it->second = new_path;
626 XMLTree tree (new_path);
627 tree.set_root (&format->get_state());
631 FormatListChanged ();
636 ExportProfileManager::remove_format_profile (ExportFormatSpecPtr format)
638 for (FormatList::iterator it = format_list->begin(); it != format_list->end(); ++it) {
640 format_list->erase (it);
645 FileMap::iterator it = format_file_map.find (format->id());
646 if (it != format_file_map.end()) {
647 if (g_remove (it->second.c_str()) != 0) {
648 error << string_compose (_("Unable to remove export profile %1: %2"), it->second, g_strerror(errno)) << endmsg;
651 format_file_map.erase (it);
654 FormatListChanged ();
658 ExportProfileManager::get_new_format (ExportFormatSpecPtr original)
660 ExportFormatSpecPtr format;
662 format.reset (new ExportFormatSpecification (*original));
663 std::cerr << "After new format created from original, format has id [" << format->id().to_s() << ']' << std::endl;
665 format = handler->add_format();
666 format->set_name (_("empty format"));
669 std::string path = save_format_to_disk (format);
670 FilePair pair (format->id(), path);
671 format_file_map.insert (pair);
673 format_list->push_back (format);
674 FormatListChanged ();
680 ExportProfileManager::init_formats (XMLNodeList nodes)
685 for (XMLNodeList::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
686 FormatStatePtr format = deserialize_format (**it);
688 formats.push_back (format);
689 } else { ok = false; }
692 if (formats.empty ()) {
693 FormatStatePtr format (new FormatState (format_list, ExportFormatSpecPtr ()));
694 formats.push_back (format);
701 ExportProfileManager::FormatStatePtr
702 ExportProfileManager::deserialize_format (XMLNode & root)
707 if ((prop = root.property ("id"))) {
711 for (FormatList::iterator it = format_list->begin(); it != format_list->end(); ++it) {
712 if ((*it)->id() == id) {
713 return FormatStatePtr (new FormatState (format_list, *it));
717 return FormatStatePtr ();
721 ExportProfileManager::serialize_format (FormatStatePtr state)
723 XMLNode * root = new XMLNode ("ExportFormat");
725 string id = state->format ? state->format->id().to_s() : "";
726 root->add_property ("id", id);
732 ExportProfileManager::load_formats ()
734 vector<std::string> found = find_file (string_compose ("*%1", export_format_suffix));
736 for (vector<std::string>::iterator it = found.begin(); it != found.end(); ++it) {
737 load_format_from_disk (*it);
742 ExportProfileManager::load_format_from_disk (std::string const & path)
746 if (!tree.read (path)) {
747 error << string_compose (_("Cannot load export format from %1"), path) << endmsg;
751 XMLNode* root = tree.root();
753 error << string_compose (_("Cannot export format read from %1"), path) << endmsg;
757 ExportFormatSpecPtr format = handler->add_format (*root);
759 /* Handle id to filename mapping and don't add duplicates to list */
761 FilePair pair (format->id(), path);
762 if (format_file_map.insert (pair).second) {
763 format_list->push_back (format);
766 FormatListChanged ();
769 ExportProfileManager::FilenameStatePtr
770 ExportProfileManager::duplicate_filename_state (FilenameStatePtr state)
772 FilenameStatePtr filename (new FilenameState (handler->add_filename_copy (state->filename)));
773 filenames.push_back (filename);
778 ExportProfileManager::remove_filename_state (FilenameStatePtr state)
780 for (FilenameStateList::iterator it = filenames.begin(); it != filenames.end(); ++it) {
782 filenames.erase (it);
789 ExportProfileManager::get_sample_filename_for_format (ExportFilenamePtr filename, ExportFormatSpecPtr format)
793 if (channel_configs.empty()) { return ""; }
795 std::list<string> filenames;
796 build_filenames (filenames, filename, timespans.front()->timespans,
797 channel_configs.front()->config, format);
799 if (filenames.empty()) { return ""; }
800 return filenames.front();
804 ExportProfileManager::init_filenames (XMLNodeList nodes)
808 for (XMLNodeList::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
809 ExportFilenamePtr filename = handler->add_filename();
810 filename->set_state (**it);
811 filenames.push_back (FilenameStatePtr (new FilenameState (filename)));
814 if (filenames.empty()) {
815 FilenameStatePtr filename (new FilenameState (handler->add_filename()));
816 filenames.push_back (filename);
823 boost::shared_ptr<ExportProfileManager::Warnings>
824 ExportProfileManager::get_warnings ()
826 boost::shared_ptr<Warnings> warnings (new Warnings ());
828 ChannelConfigStatePtr channel_config_state;
829 if (!channel_configs.empty ()) {
830 channel_config_state = channel_configs.front();
833 TimespanStatePtr timespan_state = timespans.front();
835 /*** Check "global" config ***/
837 TimespanListPtr timespans = timespan_state->timespans;
839 ExportChannelConfigPtr channel_config;
840 if (channel_config_state) {
841 channel_config = channel_config_state->config;
844 /* Check Timespans are not empty */
846 if (timespans->empty()) {
847 warnings->errors.push_back (_("No timespan has been selected!"));
850 if (channel_config_state == 0) {
851 warnings->errors.push_back (_("No channels have been selected!"));
853 /* Check channel config ports */
854 if (!channel_config->all_channels_have_ports ()) {
855 warnings->warnings.push_back (_("Some channels are empty"));
859 /*** Check files ***/
861 if (channel_config_state) {
862 FormatStateList::const_iterator format_it;
863 FilenameStateList::const_iterator filename_it;
864 for (format_it = formats.begin(), filename_it = filenames.begin();
865 format_it != formats.end() && filename_it != filenames.end();
866 ++format_it, ++filename_it) {
867 check_config (warnings, timespan_state, channel_config_state, *format_it, *filename_it);
875 ExportProfileManager::check_config (boost::shared_ptr<Warnings> warnings,
876 TimespanStatePtr timespan_state,
877 ChannelConfigStatePtr channel_config_state,
878 FormatStatePtr format_state,
879 FilenameStatePtr filename_state)
881 TimespanListPtr timespans = timespan_state->timespans;
882 ExportChannelConfigPtr channel_config = channel_config_state->config;
883 ExportFormatSpecPtr format = format_state->format;
884 ExportFilenamePtr filename = filename_state->filename;
886 /* Check format and maximum channel count */
887 if (!format || !format->type()) {
888 warnings->errors.push_back (_("No format selected!"));
889 } else if (!channel_config->get_n_chans()) {
890 warnings->errors.push_back (_("All channels are empty!"));
891 } else if (!check_format (format, channel_config->get_n_chans())) {
892 warnings->errors.push_back (_("One or more of the selected formats is not compatible with this system!"));
893 } else if (format->channel_limit() < channel_config->get_n_chans()) {
894 warnings->errors.push_back
895 (string_compose (_("%1 supports only %2 channels, but you have %3 channels in your channel configuration"),
896 format->format_name(),
897 format->channel_limit(),
898 channel_config->get_n_chans()));
901 if (!warnings->errors.empty()) { return; }
903 /* Check filenames */
905 // filename->include_timespan = (timespans->size() > 1); Disabled for now...
907 std::list<string> paths;
908 build_filenames(paths, filename, timespans, channel_config, format);
910 for (std::list<string>::const_iterator path_it = paths.begin(); path_it != paths.end(); ++path_it) {
912 string path = *path_it;
914 if (Glib::file_test (path, Glib::FILE_TEST_EXISTS)) {
915 warnings->conflicting_filenames.push_back (path);
918 if (format->with_toc()) {
919 string marker_file = handler->get_cd_marker_filename(path, CDMarkerTOC);
920 if (Glib::file_test (marker_file, Glib::FILE_TEST_EXISTS)) {
921 warnings->conflicting_filenames.push_back (marker_file);
925 if (format->with_cue()) {
926 string marker_file = handler->get_cd_marker_filename(path, CDMarkerCUE);
927 if (Glib::file_test (marker_file, Glib::FILE_TEST_EXISTS)) {
928 warnings->conflicting_filenames.push_back (marker_file);
935 ExportProfileManager::check_format (ExportFormatSpecPtr format, uint32_t channels)
937 switch (format->type()) {
938 case ExportFormatBase::T_Sndfile:
939 return check_sndfile_format (format, channels);
942 throw ExportFailed (X_("Invalid format given for ExportFileFactory::check!"));
947 ExportProfileManager::check_sndfile_format (ExportFormatSpecPtr format, unsigned int channels)
950 sf_info.channels = channels;
951 sf_info.samplerate = format->sample_rate ();
952 sf_info.format = format->format_id () | format->sample_format ();
954 return (sf_format_check (&sf_info) == SF_TRUE ? true : false);
958 ExportProfileManager::build_filenames(std::list<std::string> & result, ExportFilenamePtr filename,
959 TimespanListPtr timespans, ExportChannelConfigPtr channel_config,
960 ExportFormatSpecPtr format)
962 for (std::list<ExportTimespanPtr>::iterator timespan_it = timespans->begin();
963 timespan_it != timespans->end(); ++timespan_it) {
964 filename->set_timespan (*timespan_it);
966 if (channel_config->get_split()) {
967 filename->include_channel = true;
969 for (uint32_t chan = 1; chan <= channel_config->get_n_chans(); ++chan) {
970 filename->set_channel (chan);
971 result.push_back(filename->get_path (format));
975 filename->include_channel = false;
976 result.push_back(filename->get_path (format));
981 }; // namespace ARDOUR