-static std::string
-get_non_existent_filename (HeaderFormat hf, DataType type, const bool allow_replacing, const std::string& destdir, const std::string& basename, uint channel, uint channels)
-{
- char buf[PATH_MAX+1];
- bool goodfile = false;
- string base(basename);
- string ext = native_header_format_extension (hf, type);
-
- do {
-
- if (type == DataType::AUDIO && channels == 2) {
- if (channel == 0) {
- snprintf (buf, sizeof(buf), "%s-L%s", base.c_str(), ext.c_str());
- } else {
- snprintf (buf, sizeof(buf), "%s-R%s", base.c_str(), ext.c_str());
- }
- } else if (channels > 1) {
- snprintf (buf, sizeof(buf), "%s-c%d%s", base.c_str(), channel, ext.c_str());
- } else {
- snprintf (buf, sizeof(buf), "%s%s", base.c_str(), ext.c_str());
- }
-
-
- string tempname = destdir + "/" + buf;
- if (!allow_replacing && Glib::file_test (tempname, Glib::FILE_TEST_EXISTS)) {
-
- /* if the file already exists, we must come up with
- * a new name for it. for now we just keep appending
- * _ to basename
- */
-
- base += "_";
-
- } else {
-
- goodfile = true;
- }
-
- } while ( !goodfile);
-
- return buf;
-}
+vector<string>
+Session::get_paths_for_new_sources (bool /*allow_replacing*/, const string& import_file_path, uint32_t channels,
+ vector<string> const & smf_track_names)