| 6 |
| #define LIBTGVOIP_RESAMPLER_H |
| 7 |
| 8 | #include <stdlib.h> |
| 9 | #include <stdint.h> |
| 10 |
| 11 | namespace tgvoip{ namespace audio{ |
| 12 | class Resampler{ |
| 13 | public: |
| 14 | static size_t Convert48To44(int16_t* from, int16_t* to, size_t fromLen, size_t toLen); |
| 15 | static size_t Convert44To48(int16_t* from, int16_t* to, size_t fromLen, size_t toLen); |
| 16 | static size_t Convert(int16_t* from, int16_t* to, size_t fromLen, size_t toLen, int num, int denom); |
| 17 | static void Rescale60To80(int16_t* in, int16_t* out); |
| 18 | static void Rescale60To40(int16_t* in, int16_t* out); |
| 19 | }; |
| 20 | }} |
| 21 |
| 22 | #endif //LIBTGVOIP_RESAMPLER_H |
| 23 |