diff options
author | Robin Gareus <robin@gareus.org> | 2015-11-28 23:40:03 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-11-28 23:40:03 +0100 |
commit | c4f8a69526b5f9b4412c013b9c582690e1cb2f79 (patch) | |
tree | 2bcaa6cbcc13cab49a15eb9257b703bbee970ac9 /libs/ardour/delivery.cc | |
parent | 5bdab247469c0d85c482f5e5f19cfd11933b0d68 (diff) |
don't clear MIDI buffers during split-cycles
if dst_offset is zero, MidiBuffer::read_from() clears the buffer.
copy_to_outputs() eventually calls MidiBuffer::read_from().
Diffstat (limited to 'libs/ardour/delivery.cc')
-rw-r--r-- | libs/ardour/delivery.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index b70d86a75d..b2cdc0b324 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -300,7 +300,7 @@ Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pf // MIDI data will not have been delivered by the panner if (bufs.count().n_midi() > 0 && ports.count().n_midi () > 0) { - _output->copy_to_outputs (bufs, DataType::MIDI, nframes, 0); + _output->copy_to_outputs (bufs, DataType::MIDI, nframes, ports.port(0)->port_offset()); } } else { @@ -312,7 +312,7 @@ Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pf } if (bufs.count().n_midi() > 0 && ports.count().n_midi () > 0) { - _output->copy_to_outputs (bufs, DataType::MIDI, nframes, 0); + _output->copy_to_outputs (bufs, DataType::MIDI, nframes, ports.port(0)->port_offset()); } } |