* fixed bug: MIDI region did not sound if its position was less than its start offset

git-svn-id: svn://localhost/ardour2/branches/3.0@3239 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Baier 2008-04-08 23:57:59 +00:00
parent 9228d5dc23
commit f39606f985
7 changed files with 28 additions and 14 deletions

View file

@ -101,15 +101,15 @@ MidiSource::set_state (const XMLNode& node)
}
nframes_t
MidiSource::midi_read (MidiRingBuffer& dst, nframes_t start, nframes_t cnt, nframes_t stamp_offset) const
MidiSource::midi_read (MidiRingBuffer& dst, nframes_t start, nframes_t cnt, nframes_t stamp_offset, nframes_t negative_stamp_offset) const
{
Glib::Mutex::Lock lm (_lock);
if (_model) {
const size_t n_events = _model->read(dst, start, cnt, stamp_offset);
const size_t n_events = _model->read(dst, start, cnt, stamp_offset, negative_stamp_offset);
cout << "Read " << n_events << " events from model." << endl;
return cnt;
} else {
return read_unlocked (dst, start, cnt, stamp_offset);
return read_unlocked (dst, start, cnt, stamp_offset, negative_stamp_offset);
}
}