summaryrefslogtreecommitdiff
path: root/libs/ardour/session_process.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-05-22 23:27:47 +0200
committerRobin Gareus <robin@gareus.org>2018-07-09 17:30:38 +0200
commitbee09ac9e12c1e7d5b6c6fa4642217e7a7cc6ec0 (patch)
tree9c4c9e7b067c8f2682e6f8a1c316f4ebcb82be5c /libs/ardour/session_process.cc
parent87b2c94759ab95c31bf0ba43e299eb78dcfd6385 (diff)
Remove unused CubicInterpolation from session
Diffstat (limited to 'libs/ardour/session_process.cc')
-rw-r--r--libs/ardour/session_process.cc8
1 files changed, 2 insertions, 6 deletions
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);