- /* this block of methods do nothing for regular file sources, but are significant
- for files used in destructive recording.
- */
- // FIXME and thus are useless for MIDI.. but make MidiDiskstream compile easier! :)
-
- virtual nframes_t last_capture_start_frame() const { return 0; }
- virtual void mark_capture_start (nframes_t) {}
- virtual void mark_capture_end () {}
- virtual void clear_capture_marks() {}
-
- bool set_name (const std::string& newname) { return (set_source_name(newname, false) == 0); }
- int set_source_name (string newname, bool destructive);
-
- static bool safe_file_extension (const Glib::ustring& path);
-
- Glib::ustring path() const { return _path; }
-
- void set_allow_remove_if_empty (bool yn);
- void mark_for_remove();
-
- void append_event_unlocked(EventTimeUnit unit, const Evoral::Event<double>& ev);
-
- int move_to_trash (const string trash_dir_name);
+ bool safe_file_extension (const std::string& path) const {
+ return safe_midi_file_extension(path);
+ }