summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/buffer.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-06-09 02:07:59 +0000
committerDavid Robillard <d@drobilla.net>2007-06-09 02:07:59 +0000
commit7ff7f4013dfbbf18d08e397230ad2486fa7ff58f (patch)
tree4740e59efb0749e522c0ae55464e2a5140ebeaa7 /libs/ardour/ardour/buffer.h
parent0605f98fdce1ad456e3da6f6ae391ad394b3edfb (diff)
Use double MIDI timestamps (towards tempo based time, and more-than-sample-accurate LV2 MIDI plugin application).
Eliminate double iteration over MIDIRingBuffer read to translate timestamps. git-svn-id: svn://localhost/ardour2/trunk@1981 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/buffer.h')
-rw-r--r--libs/ardour/ardour/buffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/buffer.h b/libs/ardour/ardour/buffer.h
index 61e7a843f1..fe9516cb84 100644
--- a/libs/ardour/ardour/buffer.h
+++ b/libs/ardour/ardour/buffer.h
@@ -190,7 +190,8 @@ public:
void read_from(const Buffer& src, nframes_t nframes, nframes_t offset);
bool push_back(const ARDOUR::MidiEvent& event);
- Byte* reserve(nframes_t time, size_t size);
+ bool push_back(const jack_midi_event_t& event);
+ Byte* reserve(double time, size_t size);
const MidiEvent& operator[](size_t i) const { assert(i < _size); return _events[i]; }
MidiEvent& operator[](size_t i) { assert(i < _size); return _events[i]; }