From 7ff7f4013dfbbf18d08e397230ad2486fa7ff58f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Jun 2007 02:07:59 +0000 Subject: 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 --- libs/ardour/ardour/buffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/ardour/buffer.h') 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]; } -- cgit v1.2.3