summaryrefslogtreecommitdiff
path: root/third_party/resample/include/resamplesubs.h
blob: ab0771b613532d5a0b730fe5b011f6e2517b8277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __RESAMPLESUBS_H__
#define __RESAMPLESUBS_H__

typedef char           RES_BOOL;
typedef short          RES_HWORD;
typedef int            RES_WORD;
typedef unsigned short RES_UHWORD;
typedef unsigned int   RES_UWORD;

#ifdef _USRDLL
#   define DECL(T)  __declspec(dllexport) T
#else
#   define DECL(T)  T
#endif

DECL(int) res_SrcLinear(const RES_HWORD X[], RES_HWORD Y[], 
		        double pFactor, RES_UHWORD nx);
DECL(int) res_Resample(const RES_HWORD X[], RES_HWORD Y[], double pFactor, 
		       RES_UHWORD nx, RES_BOOL LargeF, RES_BOOL Interp);
DECL(int) res_GetXOFF(double pFactor, RES_BOOL LargeF);


#endif