diff options
author | Carl Hetherington <carl@carlh.net> | 2011-10-31 21:17:14 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-10-31 21:17:14 +0000 |
commit | 03b57c455adeb7b9040d9f79a5b87c435a64814c (patch) | |
tree | 1ff145fe863ed424c94ca976544ed9354b6775ea /libs/ardour/midi_track.cc | |
parent | 5dba72c874def27bef3ba3fe7a5cf2414e77aadb (diff) |
Fix compensation of roll delay with MIDI tracks; data
should be obtained from playback_sample, not
transport_frame (should fix #4172).
git-svn-id: svn://localhost/ardour2/branches/3.0@10362 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_track.cc')
-rw-r--r-- | libs/ardour/midi_track.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index 238e616a4f..9114311ac9 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -358,7 +358,7 @@ MidiTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_frame c.set_midi (1); bufs.set_count (c); - diskstream->get_playback (mbuf, start_frame, end_frame); + diskstream->get_playback (mbuf, nframes); /* append immediate messages to the first MIDI buffer (thus sending it to the first output port) */ |