summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/smf_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour/smf_source.h')
-rw-r--r--libs/ardour/ardour/smf_source.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/ardour/smf_source.h b/libs/ardour/ardour/smf_source.h
index 193330ef36..9d85f94352 100644
--- a/libs/ardour/ardour/smf_source.h
+++ b/libs/ardour/ardour/smf_source.h
@@ -45,6 +45,15 @@ public:
virtual ~SMFSource ();
+ /** Rename the file on disk referenced by this source to \param newname
+ *
+ * This method exists only for MIDI file sources, not for audio, which
+ * can never be renamed. It exists for MIDI so that we can get
+ * consistent and sane region/source numbering when regions are added
+ * manually (which never happens with audio).
+ */
+ int rename (const std::string& name);
+
bool safe_file_extension (const std::string& path) const {
return safe_midi_file_extension(path);
}