Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / icedax / resample.h
1 /*
2  * This file has been modified for the cdrkit suite.
3  *
4  * The behaviour and appearence of the program code below can differ to a major
5  * extent from the version distributed by the original author(s).
6  *
7  * For details, see Changelog file distributed with the cdrkit package. If you
8  * received this file from another source then ask the distributing person for
9  * a log of modifications.
10  *
11  */
12
13 /* @(#)resample.h       1.3 02/08/02 Copyright 1998,1999 Heiko Eissfeldt */
14 #define SYNC_SIZE       600     /* has to be smaller than CD_FRAMESAMPLES */
15
16 extern int waitforsignal;       /* flag: wait for any audio response */
17 extern int any_signal;
18
19 extern short undersampling;     /* conversion factor */
20 extern short samples_to_do;     /* loop variable for conversion */
21 extern int Halved;              /* interpolate due to non integral divider */
22 extern int jitterShift;         /* track accumulated jitter */
23 long SaveBuffer(UINT4 *p, unsigned long SecsToDo, unsigned long *BytesDone);
24 unsigned char *synchronize(UINT4 *p, unsigned SamplesToDo, 
25                                                                         unsigned TotSamplesDone);
26 void    handle_inputendianess(UINT4 *p, unsigned SamplesToDo);