From 018fff15ef766bb2a199441a7912fb8ab9984c72 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Mon, 2 Feb 2009 09:10:26 +0000 Subject: [PATCH] * fix misleading/wrong comment git-svn-id: svn://localhost/ardour2/branches/3.0@4477 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_ring_buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/midi_ring_buffer.cc b/libs/ardour/midi_ring_buffer.cc index e93ca51b25..eba1a9156b 100644 --- a/libs/ardour/midi_ring_buffer.cc +++ b/libs/ardour/midi_ring_buffer.cc @@ -98,7 +98,7 @@ MidiRingBuffer::read(MidiBuffer& dst, nframes_t start, nframes_t end, nframes ev_time -= start; ev_time += offset; - // this writes the timestamp to write_loc[0] + // this writes the timestamp to address (write_loc - 1) uint8_t* write_loc = dst.reserve(ev_time, ev_size); if (write_loc == NULL) { cerr << "MRB: Unable to reserve space in buffer, event skipped";