mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-23 21:57:16 +01:00
don't attempt MIDI playback if there are no MIDI buffers provided for processing
This commit is contained in:
parent
25f1eddb4d
commit
e732311cde
1 changed files with 2 additions and 2 deletions
|
|
@ -391,7 +391,7 @@ DiskReader::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame,
|
|||
|
||||
/* MIDI data handling */
|
||||
|
||||
if (!_session.declick_out_pending()) {
|
||||
if (!_session.declick_out_pending() && bufs.count().n_midi()) {
|
||||
MidiBuffer* dst;
|
||||
|
||||
if (_no_disk_output) {
|
||||
|
|
@ -400,7 +400,7 @@ DiskReader::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame,
|
|||
dst = &bufs.get_midi (0);
|
||||
}
|
||||
|
||||
if (ms & MonitoringDisk && !still_locating) {
|
||||
if ((ms & MonitoringDisk) && !still_locating) {
|
||||
get_midi_playback (*dst, disk_samples_to_consume, ms, scratch_bufs, speed, disk_samples_to_consume);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue