2 #include <samplerate.h>
4 #include "ardour/types.h"
6 #ifndef __interpolation_h__
7 #define __interpolation_h__
11 class LibSamplerateInterpolation {
15 std::vector<SRC_STATE*> state;
16 std::vector<SRC_DATA*> data;
23 LibSamplerateInterpolation ();
24 ~LibSamplerateInterpolation ();
26 void set_speed (double new_speed);
27 void set_target_speed (double new_speed) {}
28 double speed () const { return _speed; }
30 void add_channel_to (int input_buffer_size, int output_buffer_size);
31 void remove_channel_from ();
33 nframes_t interpolate (int channel, nframes_t nframes, Sample* input, Sample* output);