summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_region.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-09-01 01:46:38 +0000
committerCarl Hetherington <carl@carlh.net>2010-09-01 01:46:38 +0000
commit61af48d18e188d9b0cf8e68515962995912b2e6b (patch)
tree7cdb66045f2b4f5c65c06bb955171877af8c640a /libs/ardour/midi_region.cc
parent369b639222a0473cbfffae806ae0633c6532c4c5 (diff)
Fix error in diskstream fill calculations. Fixes #3426.
git-svn-id: svn://localhost/ardour2/branches/3.0@7725 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_region.cc')
-rw-r--r--libs/ardour/midi_region.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc
index 91f9ee58ed..df4d7f4b06 100644
--- a/libs/ardour/midi_region.cc
+++ b/libs/ardour/midi_region.cc
@@ -163,9 +163,8 @@ MidiRegion::_read_at (const SourceList& /*srcs*/, Evoral::EventSink<nframes_t>&
// handle resizing of beginnings of regions correctly
output_buffer_position = _position - _start;
} else {
- // when _start is greater than _position, we have to subtract
- // _start from the note times in the midi source
- negative_output_buffer_position = _start;
+ // the reverse of the above
+ negative_output_buffer_position = _start - _position;
}
/*cerr << "MR read @ " << position << " * " << to_read