Fix error in diskstream fill calculations. Fixes #3426.
git-svn-id: svn://localhost/ardour2/branches/3.0@7725 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
369b639222
commit
61af48d18e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user