21 #ifndef __ardour_smf_source_h__
22 #define __ardour_smf_source_h__
34 template<
typename T>
class MidiRingBuffer;
51 return safe_midi_file_extension(path);
57 void mark_streaming_midi_write_started (
const Lock& lock,
NoteMode mode);
58 void mark_streaming_write_completed (
const Lock& lock);
59 void mark_midi_streaming_write_completed (
const Lock& lock,
64 int set_state (
const XMLNode&,
int version);
69 static bool safe_midi_file_extension (
const std::string& path);
70 static bool valid_midi_file (
const std::string& path);
72 void prevent_deletion ();
76 void set_path (
const std::string& newpath);
77 void flush_midi (
const Lock& lock);
88 int open_for_write ();
90 void ensure_disk_file (
const Lock& lock);
framepos_t _smf_last_read_end
Glib::Threads::Mutex::Lock Lock
LIBARDOUR_API PBD::PropertyDescriptor< framepos_t > start
framepos_t _smf_last_read_time
bool safe_file_extension(const std::string &path) const
LIBARDOUR_API PBD::PropertyDescriptor< framepos_t > position
Evoral::Beats _last_ev_time_beats
framepos_t _last_ev_time_frames