Mercurial > hg > svcore
comparison base/Resampler.h @ 1057:5c5d4863b428 tonioni
Merge from cxx11 branch
author | Chris Cannam |
---|---|
date | Mon, 23 Mar 2015 11:26:28 +0000 |
parents | cc27f35aa75c |
children |
comparison
equal
deleted
inserted
replaced
1056:c4898e57eea5 | 1057:5c5d4863b428 |
---|---|
19 */ | 19 */ |
20 | 20 |
21 #ifndef _RESAMPLER_H_ | 21 #ifndef _RESAMPLER_H_ |
22 #define _RESAMPLER_H_ | 22 #define _RESAMPLER_H_ |
23 | 23 |
24 #include "BaseTypes.h" | |
25 | |
24 #include <sys/types.h> | 26 #include <sys/types.h> |
25 | 27 |
26 class Resampler | 28 class Resampler |
27 { | 29 { |
28 public: | 30 public: |
29 enum Quality { Best, FastestTolerable, Fastest }; | 31 enum Quality { Best, FastestTolerable, Fastest }; |
30 | 32 |
31 Resampler(Quality quality, int channels, int chunkSize = 0); | 33 Resampler(Quality quality, int channels, sv_frame_t chunkSize = 0); |
32 ~Resampler(); | 34 ~Resampler(); |
33 | 35 |
34 int resample(float **in, float **out, | 36 sv_frame_t resample(float **in, float **out, |
35 int incount, float ratio, | 37 sv_frame_t incount, double ratio, |
36 bool final = false); | 38 bool final = false); |
37 | 39 |
38 int resampleInterleaved(float *in, float *out, | 40 sv_frame_t resampleInterleaved(float *in, float *out, |
39 int incount, float ratio, | 41 sv_frame_t incount, double ratio, |
40 bool final = false); | 42 bool final = false); |
41 | 43 |
42 void reset(); | 44 void reset(); |
43 | 45 |
44 protected: | 46 protected: |
45 class D; | 47 class D; |