13
0

Remove disk-reader local MIDI vari-speed

Vari-speed is now handled by the engine, on port-level
This commit is contained in:
Robin Gareus 2019-02-07 21:32:20 +01:00
parent 8dda9f4ca8
commit bea9f5adc3
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1199,17 +1199,6 @@ DiskReader::get_midi_playback (MidiBuffer& dst, samplepos_t start_sample, sample
g_atomic_int_add (&_samples_read_from_ringbuffer, nframes);
/* vari-speed */
if (speed != 0.0 && fabsf (speed) != 1.0f) {
for (MidiBuffer::iterator i = target->begin(); i != target->end(); ++i) {
MidiBuffer::TimeType *tme = i.timeptr();
// XXX need to subtract port offsets before scaling
// also we must only scale events read from disk
// and not existing input data in the buffer.
*tme = (*tme) * nframes / disk_samples_to_consume;
}
}
if (ms & MonitoringInput) {
dst.merge_from (*target, nframes);
}