2 #include "ardour/types.h"
4 #ifndef __interpolation_h__
5 #define __interpolation_h__
11 double _speed, _target_speed;
14 Interpolation () : _speed(0.0L) {}
16 void set_speed (double new_speed) { _speed = new_speed; }
17 void set_target_speed (double new_speed) { _target_speed = new_speed; }
19 double target_speed() const { return _target_speed; }
20 double speed() const { return _speed; }
22 virtual nframes_t interpolate (nframes_t nframes, Sample* input, Sample* output) = 0;
25 class LinearInterpolation : public Interpolation {
27 nframes_t interpolate (nframes_t nframes, Sample* input, Sample* output);