home *** CD-ROM | disk | FTP | other *** search
/ The Amiga Game Guide / AmigaGameGuide_CD.iso / Amiga / PD-Games / DogFight! / Sources.lha / snd.h < prev    next >
C/C++ Source or Header  |  1994-05-16  |  891b  |  55 lines

  1. typedef LONG Fixed;
  2.  
  3. typedef struct {
  4.     ULONG oneShotHiSamples,
  5.             repeatHiSamples,
  6.             samplesPerHiCycle;
  7.     UWORD samplesPerSec;
  8.     UBYTE ctOctave,
  9.             sCompression;
  10.     Fixed volume;
  11. } Voice8Header;
  12.  
  13. #define MAXOCT 16
  14.  
  15. struct Chunk {
  16.     long ckID;
  17.     long ckSize;
  18.     long ckType;
  19.     void *ckData;
  20.     // Chunk *ckNext;
  21. };
  22.  
  23. struct ParseInfo {
  24.     struct IFFHandle *iff;
  25.     UBYTE *filename;
  26.     LONG *propchks;
  27.     LONG *collectchks;
  28.     LONG *stopchks;
  29.     BOOL opened;
  30.     BOOL clipboard;
  31.     BOOL hunt;
  32.     BOOL Reserved1;
  33.     
  34.     struct Chunk *copiedchunks;
  35.     struct Chunk *newchunks;
  36.     ULONG Reserved[8];
  37. };
  38.  
  39. struct EightSVXInfo {
  40.     struct ParseInfo    ParseInfo;
  41.     Voice8Header        Vhdr;
  42.     BYTE                    *sample;
  43.     ULONG                    samplebytes;
  44.     BYTE                    *osamps[MAXOCT];
  45.     ULONG                    osizes[MAXOCT];
  46.     BYTE                    *rsamps[MAXOCT];
  47.     ULONG                    rsizes[MAXOCT];
  48.     ULONG                    spcycs[MAXOCT];
  49.     UBYTE                    name[80];
  50.     ULONG                    Reserved[8];
  51. };
  52.  
  53. struct Library *IFFParseBase;
  54.  
  55.