diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-04-13 11:12:22 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-04-14 02:17:30 -0400 |
commit | b81d57f0495e7c5866fcd49e5c9c6483227966c2 (patch) | |
tree | dad9e236147456b65ef87601afc87400d91ecb25 /libs/ardour/ardour/smf_source.h | |
parent | 343b06d8d3522d6b017d887ca754c91aec2430fd (diff) |
further code simplification and rationalization related to MIDI source/file renaming
Diffstat (limited to 'libs/ardour/ardour/smf_source.h')
-rw-r--r-- | libs/ardour/ardour/smf_source.h | 9 |
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); } |