1 /* @(#)resample.h 1.5 06/05/13 Copyright 1998,1999 Heiko Eissfeldt */ 2 3 /* 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * See the file CDDL.Schily.txt in this distribution for details. 10 * A copy of the CDDL is also available via the Internet at 11 * http://www.opensource.org/licenses/cddl1.txt 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file CDDL.Schily.txt from this distribution. 15 */ 16 17 #define SYNC_SIZE 600 /* has to be smaller than CD_FRAMESAMPLES */ 18 19 extern int waitforsignal; /* flag: wait for any audio response */ 20 extern int any_signal; 21 22 extern short undersampling; /* conversion factor */ 23 extern short samples_to_do; /* loop variable for conversion */ 24 extern int Halved; /* interpolate due to non integral divider */ 25 extern int jitterShift; /* track accumulated jitter */ 26 27 extern long SaveBuffer __PR((UINT4 *p, 28 unsigned long SecsToDo, 29 unsigned long *BytesDone)); 30 extern unsigned char *synchronize __PR((UINT4 *p, 31 unsigned SamplesToDo, 32 unsigned TotSamplesDone)); 33 extern void handle_inputendianess __PR((UINT4 *p, 34 unsigned SamplesToDo)); 35