libresample.h (1144B)
1 /********************************************************************** 2 3 resample.h 4 5 Real-time library interface by Dominic Mazzoni 6 7 Based on resample-1.7: 8 http://www-ccrma.stanford.edu/~jos/resample/ 9 10 Dual-licensed as LGPL and BSD; see README.md and LICENSE* files. 11 12 **********************************************************************/ 13 14 #ifndef LIBRESAMPLE_INCLUDED 15 #define LIBRESAMPLE_INCLUDED 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif /* __cplusplus */ 20 21 void *resample_open(int highQuality, 22 double minFactor, 23 double maxFactor); 24 25 void *resample_dup(const void *handle); 26 27 int resample_get_filter_width(const void *handle); 28 29 int resample_process(void *handle, 30 double factor, 31 float *inBuffer, 32 int inBufferLen, 33 int lastFlag, 34 int *inBufferUsed, 35 float *outBuffer, 36 int outBufferLen); 37 38 void resample_close(void *handle); 39 40 #ifdef __cplusplus 41 } /* extern "C" */ 42 #endif /* __cplusplus */ 43 44 #endif /* LIBRESAMPLE_INCLUDED */