Mercurial > hg > svcore
comparison base/Resampler.h @ 928:6a94bb528e9d warnfix_no_size_t
Remove size_t's, fix compiler warnings
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 13:52:07 +0100 |
parents | c022976d18e8 |
children | cc27f35aa75c |
comparison
equal
deleted
inserted
replaced
917:49618f39ff09 | 928:6a94bb528e9d |
---|---|
26 class Resampler | 26 class Resampler |
27 { | 27 { |
28 public: | 28 public: |
29 enum Quality { Best, FastestTolerable, Fastest }; | 29 enum Quality { Best, FastestTolerable, Fastest }; |
30 | 30 |
31 Resampler(Quality quality, size_t channels, size_t chunkSize = 0); | 31 Resampler(Quality quality, int channels, int chunkSize = 0); |
32 ~Resampler(); | 32 ~Resampler(); |
33 | 33 |
34 size_t resample(float **in, float **out, | 34 int resample(float **in, float **out, |
35 size_t incount, float ratio, | 35 int incount, float ratio, |
36 bool final = false); | 36 bool final = false); |
37 | 37 |
38 size_t resampleInterleaved(float *in, float *out, | 38 int resampleInterleaved(float *in, float *out, |
39 size_t incount, float ratio, | 39 int incount, float ratio, |
40 bool final = false); | 40 bool final = false); |
41 | 41 |
42 void reset(); | 42 void reset(); |
43 | 43 |
44 protected: | 44 protected: |