

#define PATHLEN				(256)
#define PARAM_NUM				2

#define RESAMPLE_MIN		0
#define RESAMPLE_MAX		61

int nResampleData[ RESAMPLE_MAX ] = { 38100,38300,38500,38700,38900,39100,39300,39500,39700,39900,40100,40300,40500,40700,40900,41100,41300,41500,41700,41900,
									  42100,42300,42500,42700,42900,43100,43300,43500,43700,43900,44100,44300,44500,44700,44900,45100,45300,45500,45700,45900,
									  46100,46300,46500,46700,46900,47100,47300,47500,47700,47900,48100,48300,48500,48700,48900,49100,49300,49500,49700,49900,50100 };


int OUT_BUFFER_SIZE;	// = 32640;	//32768
int	FLEN;	// = 64;	//96
int	FLENdev;	// = OUT_BUFFER_SIZE / FLEN / 2;	//stereo

////////////////////////////////////////////////////////////////
BOOL CALLBACK DlgProc (HWND, UINT, WPARAM, LPARAM);
TCHAR szAppName [] = TEXT ("asurround");
FILE *freadPcmFile( FILE *pFileP, int unBufLen, short *nDataBuf, int nExclude );
FILE *setPcmFile( char *pcFname, FILE *pFile );
void henkan( char *buff, short inData , int *ntemp);
void displaySetGain( HWND hWnd);
void displayGetGain( HWND hWnd);
void displayGetDelay( HWND hWnd);

////////////////////////////////////////////////////////////////////////////
int SAMPLE_RATE = 32000;
FILE *fid;
FILE *fid2;
FILE *fid3; 
FILE *fid4;
static FILE *fidoutput;
char cFileNameWriteFile[ PATHLEN ];
int wave_flg=1;
int f_remaster_on=1;
int wavf_ok=0;
static char g_cPassName[PATHLEN];

double g_ThroughGain = 1.0;	// gain for case no-signalprocessing

HINSTANCE g_hInstance;

int f_headtrack_on=0;

//Wav位置移動処理用変数
long lFileNowPos;
long lFileNowPosTemp;
unsigned long lFileLengthPos;
//スクロールバーに使用
int scrollpoint = 0;

char cResampleFirFilePath[256];
char cCoefDirResample[ 256 ];

int wvaWriteFlg;

