/********************************/
/**   Perfect Sound (C) 1987   **/
/**    Anthony J. Wood         **/
/**                            **/
/**                            **/
/** This Source code may be    **/
/** copied for backup only.    **/
/** This Source code is for    **/
/** reference only, you may    **/
/** NOT modify and compile     **/
/** this source except for     **/
/** PERSONAL use. Permission   **/
/** is given to distribute     **/
/** copies of the object code  **/
/** generated from compiling   **/
/** Perfect Sound ONLY if the  **/
/** source code is not changed **/
/** in any way. Permision is   **/
/** granted to use subroutines **/
/** in this file within your   **/
/** own programs if you notify **/
/** SunRize Industries of your **/
/** intent to do so and        **/
/** SunRize Industries agrees  **/
/** to your request.           **/
/**                            **/
/**  SunRize Industries        **/
/**  PO Box 1453               **/
/**  College Station, TX 77841 **/
/**  (409) 846-1311            **/
/**                            **/
/********************************/

#ifndef TRUE 
#define TRUE 1
#endif

#ifndef FALSE
#define FLASE 0
#endif


/** gadget id's **/

#define START 0
#define END 1
#define POSN 2
#define PLAYRANGE 3
#define GRAPH 4
#define STOP 5

/** memory allocation macros ***/

#define RUP(x) ( ((x)+7)&0xFFFFFFF8 )
#define RDN(x) ( (x)&0xFFFFFFF8 )


#define MakeID(a,b,c,d) ( (a)<<24|(b)<<16|(c)<<8|(d) )
#define FORM MakeID('F','O','R','M')
#define BODY MakeID('B','O','D','Y')
#define SVX  MakeID('8','S','V','X')
#define BMHD MakeID('B','M','H','D')
#define CMAP MakeID('C','M','A','P')
#define ILBM MakeID('I','L','B','M')
#define VHDR MakeID('V','H','D','R')
#define CHAN MakeID('C','H','A','N')

#define INTUITION_REV 33
#define MAX_SAMPLES 14
#define REV_VID 1
#define REG_VID 0
#define SOUNDPREC 127
#define RIGHT 4
#define LEFT 2
#define STEREO 6
#define GEP 147
#define GSP GEP-13
#define GPP GSP-13
#define GPR 163
#define GPW 179
#define EDGE_GR 525
#define EDGE_GW 525
#define BLUE 0
#define WHITE 1
#define BLACK 2
#define RED 3

#define SCALE 7
#define GBOTY GPP-6      /* bottom of graph */

#define SHOW 8      /* no. of samples to display in load requester */
#define IHI 50      /* height of getint requester */
#define SHI 30

#define BUFSIZE 2*1024

struct Samp {
   char *name[MAX_SAMPLES];
   char *lmem[MAX_SAMPLES];
   char *rmem[MAX_SAMPLES];
   int  length[MAX_SAMPLES];
   int  rate[MAX_SAMPLES];
   int  type[MAX_SAMPLES];
   ULONG sm[MAX_SAMPLES];
   ULONG em[MAX_SAMPLES];
   int  oneshot[MAX_SAMPLES];
   int  repeat[MAX_SAMPLES];
   int  cycles[MAX_SAMPLES];
   char ctoctave[MAX_SAMPLES];
   };
