mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 05:36:31 +01:00
(full commit): fix MIDI playback by not writing into the playback buffer from MidiDiskStream::process() unless recording. This has a negative impact on "monitoring" MIDI, but that needs a different, somewhat more expansive solution anyway
git-svn-id: svn://localhost/ardour2/branches/3.0@5685 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
378a90b345
commit
ddf532a655
4 changed files with 28 additions and 33 deletions
|
|
@ -138,13 +138,13 @@ MidiSource::midi_read (MidiRingBuffer<nframes_t>& dst, sframes_t source_start,
|
|||
|
||||
Evoral::Sequence<double>::const_iterator& i = _model_iter;
|
||||
|
||||
// if (_last_read_end == 0 || start != _last_read_end || !i.valid()) {
|
||||
if (_last_read_end == 0 || start != _last_read_end || !i.valid()) {
|
||||
for (i = _model->begin(); i != _model->end(); ++i) {
|
||||
if (BEATS_TO_FRAMES(i->time()) >= start) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
_last_read_end = start + cnt;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue