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, 6 insertions, 3 deletions
diff --git a/libs/ardour/ardour/smf_source.h b/libs/ardour/ardour/smf_source.h
index 00f8cb26de..83bc47d7d3 100644
--- a/libs/ardour/ardour/smf_source.h
+++ b/libs/ardour/ardour/smf_source.h
@@ -41,7 +41,7 @@ class SMFSource : public MidiSource {
};
/** Constructor for existing external-to-session files */
- SMFSource (std::string path, Flag flags);
+ SMFSource (std::string path, Flag flags = Flag(0));
/* Constructor for existing in-session files */
SMFSource (const XMLNode&);
@@ -55,8 +55,8 @@ class SMFSource : public MidiSource {
void set_allow_remove_if_empty (bool yn);
void mark_for_remove();
- virtual int update_header (jack_nframes_t when, struct tm&, time_t) = 0;
- virtual int flush_header () = 0;
+ int update_header (jack_nframes_t when, struct tm&, time_t);
+ int flush_header ();
int move_to_trash (const string trash_dir_name);
@@ -76,6 +76,9 @@ class SMFSource : public MidiSource {
int init (string idstr, bool must_exist);
+ jack_nframes_t read_unlocked (RawMidi* dst, jack_nframes_t start, jack_nframes_t cn) const;
+ jack_nframes_t write_unlocked (RawMidi* dst, jack_nframes_t cnt);
+
bool find (std::string path, bool must_exist, bool& is_new);
bool removable() const;
bool writable() const { return _flags & Writable; }