#include <stdlib.h>

#define TRUE 1
#define FALSE 0
#define YES 1
#define NO  0
#define DECAY  0
#define RESET  0

#define MAX_CHANNELS 8

typedef struct{
	int	sample_width;
	int	num_channels;
	int	sample_rate;
	float	display_rate;
	char	show_graph;
	char	show_time;
	char	show_percent;
	char	show_raw;
	char	invert_channel[8];

	int	graph_gain;

	long	threshold;
	long	decay_length;
	long	decay_position;

}STATS;


/***** I stole the rest of this file from 'vplay'.            *****/
/***** Thanks to: Michael Beck - beck@informatik.hu-berlin.de *****/
       
/* Definitions for Microsoft WAVE format */

#define RIFF		0x46464952	
#define WAVE		0x45564157
#define PCM_CODE	1
#define WAVE_MONO	1
#define WAVE_STEREO	2

/* it's in chunks like .voc and AMIGA iff, but my source say there
   are in only in this combination, so I combined them in one header;
   it works on all WAVE-file I have
*/

typedef struct {
	u_long	main_chunk;	/* 'RIFF' */
	u_long	length;		/* filelen */
	u_long	chunk_type;	/* 'WAVE' */

	u_long	sub_chunk;	/* 'fmt ' */
	u_long	sc_len;		/* length of sub_chunk, =16 */
	u_short	format;		/* should be 1 for PCM-code */
	u_short	modus;		/* 1 Mono, 2 Stereo */
	u_long	sample_fq;	/* frequence of sample */
	u_long	byte_p_sec;
	u_short	byte_p_spl;	/* samplesize; 1 or 2 bytes */
	u_short	bit_p_spl;	/* 8, 12 or 16 bit */ 

	u_long	data_chunk;	/* 'data' */
	u_long	data_length;	/* samplecount */
} WaveHeader;

