home *** CD-ROM | disk | FTP | other *** search
/ Audio 4.94 - Over 11,000 Files / audio-11000.iso / msdos / sndbords / proaudio / pcmtlsrc / pcmtlsrc.arj / TPCM.ARJ / SNDFILE.H < prev    next >
Text File  |  1992-07-29  |  1KB  |  50 lines

  1. /*$Author:   BCRANE  $*/
  2. /*$Date:   29 Jul 1992 16:58:08  $*/
  3. /*$Header:   W:/sccs/sdkapp/sndfile.h_v   1.0   29 Jul 1992 16:58:08   BCRANE  $*/
  4. /*$Log:   W:/sccs/sdkapp/sndfile.h_v  $
  5.  * 
  6.  *    Rev 1.0   29 Jul 1992 16:58:08   BCRANE
  7.  * Initial revision.
  8. */
  9. /*$Logfile:   W:/sccs/sdkapp/sndfile.h_v  $*/
  10. /*$Modtimes$*/
  11. /*$Revision:   1.0  $*/
  12. /*$Workfile:   sndfile.h  $*/
  13. typedef unsigned char uchar;
  14. typedef unsigned int uint;
  15. typedef unsigned long ulong;
  16.  
  17. #define idequals(x,a,b,c,d) (x[0] == a && x[1] == b && x[2] == c && x[3] == d)
  18.  
  19. /* defined as the RIFF datatype and size element */
  20. typedef struct chunk
  21. {
  22.     char id[4];
  23.     long size;
  24. } CHUNK;
  25. /* defined as the 'fmt ' chunk in a .wav RIFF file */
  26. typedef struct wavformat
  27. {
  28.     uint    fmttag;
  29.     uint    channels;
  30.     ulong    samplerate;
  31.     ulong    bytespersec;
  32.     uint    blockalign;
  33.     uint    datasize;    
  34. } WF;
  35.  
  36. /* defined to simplify our file processing */
  37. typedef struct buftable
  38. {
  39.     uint    fhidx;
  40.     long     foffset;
  41.     long     offset; 
  42.     long     size; 
  43.     WF         wf;
  44.     int     history;
  45.     uint    inpbtidx;
  46.     char     name[16];
  47. } BT;
  48.  
  49.  
  50.