resamplesubs.h 692 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __RESAMPLESUBS_H__
  2. #define __RESAMPLESUBS_H__
  3. typedef char RES_BOOL;
  4. typedef short RES_HWORD;
  5. typedef int RES_WORD;
  6. typedef unsigned short RES_UHWORD;
  7. typedef unsigned int RES_UWORD;
  8. #ifdef _USRDLL
  9. # define DECL(T) __declspec(dllexport) T
  10. #else
  11. # define DECL(T) T
  12. #endif
  13. #ifdef __cplusplus
  14. extern "C"
  15. {
  16. #endif
  17. DECL(int) res_SrcLinear(const RES_HWORD X[], RES_HWORD Y[],
  18. double pFactor, RES_UHWORD nx);
  19. DECL(int) res_Resample(const RES_HWORD X[], RES_HWORD Y[], double pFactor,
  20. RES_UHWORD nx, RES_BOOL LargeF, RES_BOOL Interp);
  21. DECL(int) res_GetXOFF(double pFactor, RES_BOOL LargeF);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif