diff options
author | David Robillard <d@drobilla.net> | 2009-02-02 02:36:05 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-02 02:36:05 +0000 |
commit | 166ef64e3db4ab72b7b1e7455234e2b9ceddf6d8 (patch) | |
tree | 0f28067a301556c5c0a67091c691c82960db57c1 /libs/ardour/ardour/smf_source.h | |
parent | ead5dd45689be089d79a4a5daad88da737ca4cd9 (diff) |
Make (MIDI) event time stamp type a template parameter.
git-svn-id: svn://localhost/ardour2/branches/3.0@4473 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/smf_source.h')
-rw-r--r-- | libs/ardour/ardour/smf_source.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/ardour/smf_source.h b/libs/ardour/ardour/smf_source.h index 0c0dba3d96..e92ae59c3f 100644 --- a/libs/ardour/ardour/smf_source.h +++ b/libs/ardour/ardour/smf_source.h @@ -27,14 +27,14 @@ #include <ardour/midi_source.h> #include <evoral/SMF.hpp> -namespace Evoral { class Event; } +namespace Evoral { template<typename T> class Event; } namespace ARDOUR { -class MidiRingBuffer; +template<typename T> class MidiRingBuffer; /** Standard Midi File (Type 0) Source */ -class SMFSource : public MidiSource, public Evoral::SMF { +class SMFSource : public MidiSource, public Evoral::SMF<double> { public: enum Flag { Writable = 0x1, @@ -74,7 +74,7 @@ class SMFSource : public MidiSource, public Evoral::SMF { void set_allow_remove_if_empty (bool yn); void mark_for_remove(); - void append_event_unlocked(EventTimeUnit unit, const Evoral::Event& ev); + void append_event_unlocked(EventTimeUnit unit, const Evoral::Event<double>& ev); int move_to_trash (const string trash_dir_name); @@ -100,14 +100,14 @@ class SMFSource : public MidiSource, public Evoral::SMF { int init (string idstr, bool must_exist); nframes_t read_unlocked ( - MidiRingBuffer& dst, + MidiRingBuffer<double>& dst, nframes_t start, nframes_t cn, nframes_t stamp_offset, nframes_t negative_stamp_offset) const; nframes_t write_unlocked ( - MidiRingBuffer& src, + MidiRingBuffer<double>& src, nframes_t cnt); bool find (std::string path, bool must_exist, bool& is_new); |