Easiest compiler warning fix, ever
[ardour.git] / libs / ardour / ardour / interpolation.h
1 #include <math.h>
2 #include "ardour/types.h"
3
4 #ifndef __interpolation_h__
5 #define __interpolation_h__
6
7 namespace ARDOUR {
8
9 class Interpolation {
10 protected:
11         double   _speed, _target_speed;
12             
13 public:
14         Interpolation () : _speed(0.0L) {}
15     
16         void set_speed (double new_speed)          { _speed = new_speed; }
17         void set_target_speed (double new_speed)   { _target_speed = new_speed; }
18
19         double target_speed()          const { return _target_speed; }
20         double speed()                 const { return _speed; }
21  
22         virtual nframes_t interpolate (nframes_t nframes, Sample* input, Sample* output) = 0;
23 };
24
25 class LinearInterpolation : public Interpolation {
26 public:
27         nframes_t interpolate (nframes_t nframes, Sample* input, Sample* output);
28 };
29
30 } // namespace ARDOUR
31
32 #endif
33