1 /** 2 \fn ADM_audioResample.h 3 \brief Wrapper around libsamplerate 4 5 6 */ 7 #ifndef ADM_audioResample_H 8 #define ADM_audioResample_H 9 10 class ADM_resample 11 { 12 protected: 13 void *context; 14 uint32_t fromFrequency; 15 uint32_t toFrequency; 16 uint32_t nbChannels; 17 double ratio; 18 public: 19 ADM_resample(void); 20 ~ADM_resample(); 21 bool reset(void); 22 bool process(float *from, float *to, uint32_t nbSample,uint32_t maxOutSample, uint32_t *sampleProcessed, uint32_t *outNbSample); 23 bool init(uint32_t from, uint32_t to, uint32_t channel); 24 25 }; 26 27 28 #endif 29 //EOF 30