summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/midi_diskstream.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-06-08 01:07:03 +0200
committerRobin Gareus <robin@gareus.org>2014-06-08 01:07:03 +0200
commit6416a429a888fcb18b9aa5a4aed1d6d8c9a6da1f (patch)
tree5bbf49a54673c49d23076bd8dd9ee843b1a0d674 /libs/ardour/ardour/midi_diskstream.h
parent5a41487a082292c8a2c49e253ce9b5d86f2caf9b (diff)
implement midi capture alignment:
For audio: not writing frames to the capture ringbuffer offsets the recording. For midi: we need to keep track of the record range and subtract the accumulated difference from the event time.
Diffstat (limited to 'libs/ardour/ardour/midi_diskstream.h')
-rw-r--r--libs/ardour/ardour/midi_diskstream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/ardour/midi_diskstream.h b/libs/ardour/ardour/midi_diskstream.h
index 5a10042096..50ad7419e6 100644
--- a/libs/ardour/ardour/midi_diskstream.h
+++ b/libs/ardour/ardour/midi_diskstream.h
@@ -173,6 +173,7 @@ class LIBARDOUR_API MidiDiskstream : public Diskstream
gint _frames_read_from_ringbuffer;
volatile gint _frames_pending_write;
volatile gint _num_captured_loops;
+ framepos_t _accumulated_capture_offset;
/** A buffer that we use to put newly-arrived MIDI data in for
the GUI to read (so that it can update itself).