add missing files
[ardour.git] / libs / ardour / import.cc
index 0c4256e1f40bde2da858bd3c3a076a13ff46aa69..b47b99571bc446c43eb202944bd4cbbc9e2614bb 100644 (file)
@@ -52,6 +52,7 @@
 #include "ardour/import_status.h"
 #include "ardour/region_factory.h"
 #include "ardour/resampled_source.h"
+#include "ardour/runtime_functions.h"
 #include "ardour/session.h"
 #include "ardour/session_directory.h"
 #include "ardour/smf_source.h"
@@ -183,7 +184,7 @@ get_paths_for_new_sources (HeaderFormat hf, const bool allow_replacing, const st
                const DataType type = SMFSource::safe_midi_file_extension (import_file_path) ? DataType::MIDI : DataType::AUDIO;
 
                std::string filepath = (type == DataType::MIDI)
-                       ? sdir.midi_path().to_string() : sdir.sound_path().to_string();
+                       ? sdir.midi_path() : sdir.sound_path();
 
                filepath = Glib::build_filename (filepath,
                                                 get_non_existent_filename (hf, type, allow_replacing, filepath, basename, n, channels));
@@ -473,7 +474,7 @@ remove_file_source (boost::shared_ptr<Source> source)
 // is disabled at the GUI until the Source implementations are able to provide
 // the necessary API.
 void
-Session::import_audiofiles (ImportStatus& status)
+Session::import_files (ImportStatus& status)
 {
        typedef vector<boost::shared_ptr<Source> > Sources;
        Sources all_new_sources;