summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_source.cc
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-04-08 23:57:59 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-04-08 23:57:59 +0000
commitf39606f985223d211d218799c9e0de1e7c0e7f0c (patch)
tree792d7b0d4bfcbd4eada91b6de6c69b9d38018b80 /libs/ardour/midi_source.cc
parent9228d5dc23e196fb0dc11ef40d8f7517e2395ef5 (diff)
* 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
Diffstat (limited to 'libs/ardour/midi_source.cc')
-rw-r--r--libs/ardour/midi_source.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/midi_source.cc b/libs/ardour/midi_source.cc
index eab87376eb..aeb898a31b 100644
--- a/libs/ardour/midi_source.cc
+++ b/libs/ardour/midi_source.cc
@@ -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);
}
}