1 /* $Header: /home/cvs/wavplay/wavfile.h,v 1.1.1.1 1999/11/21 19:50:56 wwg Exp $ 2 * Copyright: wavfile.h (c) Erik de Castro Lopo erikd@zip.com.au 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation version 2 of the License. 7 * 8 * This program is distributed in the hope that it will be useful, but 9 * WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 11 * Public License for more details (see enclosed file COPYING). 12 * 13 * You should have received a copy of the GNU General Public License along 14 * with this program; if not, write to the Free Software Foundation, Inc., 15 * 675 Mass Ave, Cambridge, MA 02139, USA. 16 * 17 * $Log: wavfile.h,v $ 18 * Revision 1.1.1.1 1999/11/21 19:50:56 wwg 19 * Import wavplay-1.3 into CVS 20 * 21 * Revision 1.2 1997/04/14 01:03:06 wwg 22 * Fixed copyright, to reflect Erik's ownership of this file. 23 * 24 * Revision 1.1 1997/04/14 00:58:10 wwg 25 * Initial revision 26 */ 27 #ifndef _wavfile_h 28 #define _wavfile_h "@(#)wavfile.h $Revision: 1.1.1.1 $" 29 30 #define WW_BADOUTPUTFILE 1 31 #define WW_BADWRITEHEADER 2 32 33 #define WR_BADALLOC 3 34 #define WR_BADSEEK 4 35 #define WR_BADRIFF 5 36 #define WR_BADWAVE 6 37 #define WR_BADFORMAT 7 38 #define WR_BADFORMATSIZE 8 39 40 #define WR_NOTPCMFORMAT 9 41 #define WR_NODATACHUNK 10 42 #define WR_BADFORMATDATA 11 43 44 extern int WaveWriteHeader(int wavefile,int channels,u_int samplerate,int sampbits,u_int samples,ErrFunc erf); 45 extern int WaveReadHeader(int wavefile,int *channels,u_int *samplerate,int *samplebits,u_int *samples,u_int *datastart,ErrFunc erf); 46 47 #if 0 48 extern char *WaveFileError(int error); 49 #endif 50 51 #endif /* _wavfile_h_ */ 52 53 /* $Source: /home/cvs/wavplay/wavfile.h,v $ */ 54