/* Global Variables */

#ifdef  MD5_SIGNATURES
#include "md5.h"
#endif
typedef struct global {

  char dev_name [200];		/* device name */
  char aux_name [200];		/* device name */
  char fname_base[200];

  int audio;
  int cooked_fd;
  int no_file;
  int no_infofile;
  int quiet;
  int verbose;
  int sh_bits;
  int Remainder;
  int SkippedSamples;
  int OutSampleSize;
  int need_big_endian;
  int channels;
  unsigned long int iloop;
  unsigned long nSamplesDoneInTrack;
  unsigned int overlap;
  unsigned int nsectors;
  unsigned int buffers;
  int littleendian;
  int outputendianess;
  int findminmax;
  int maxamp;
  int minamp;
  unsigned speed;
  int ismono;
  int findmono;
  long playback_rate;
  int target; /* SCSI Id to be used */
  int lun;    /* SCSI Lun to be used */
  int nosynccount;
  UINT4 cddb_id;
  unsigned char *creator;
  unsigned char *copyright_message;
  unsigned char *disctitle;
  unsigned char *tracktitle[100];

#ifdef  MD5_SIGNATURES
  unsigned int md5blocksize, md5count;
  MD5_CTX context;
  unsigned char MD5_result[16];
#endif

#ifdef	ECHO_TO_SOUNDCARD
  int soundcard_fd;
  int echo;
#endif
} global_t;

extern global_t global;
