From bee09ac9e12c1e7d5b6c6fa4642217e7a7cc6ec0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 22 May 2018 23:27:47 +0200 Subject: Remove unused CubicInterpolation from session --- libs/ardour/session_process.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libs/ardour/session_process.cc') diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 9b26f9190c..eeb8cb871e 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -871,12 +871,8 @@ Session::process_without_events (pframes_t nframes) return; } - if (_transport_speed == 1.0) { - samples_moved = (samplecnt_t) nframes; - } else { - interpolation.set_speed (_transport_speed); - samples_moved = interpolation.distance (nframes); - } + assert (_transport_speed == 1.f || _transport_speed == -1.f); + samples_moved = (samplecnt_t) nframes * _transport_speed; if (!_exporting && !timecode_transmission_suspended()) { send_midi_time_code_for_cycle (_transport_sample, _transport_sample + samples_moved, nframes); -- cgit v1.2.3