summaryrefslogtreecommitdiff
path: root/libs/ardour/file_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/file_source.cc')
-rw-r--r--libs/ardour/file_source.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc
index 32f8a1b124..726b223273 100644
--- a/libs/ardour/file_source.cc
+++ b/libs/ardour/file_source.cc
@@ -556,6 +556,15 @@ FileSource::set_path (const std::string& newpath)
}
}
+
+void
+FileSource::replace_file (const std::string& newpath)
+{
+ close ();
+ _path = newpath;
+ _name = Glib::path_get_basename (newpath);
+}
+
void
FileSource::inc_use_count ()
{