home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Sound / SoX / Source / wav.h < prev    next >
C/C++ Source or Header  |  1999-07-18  |  1KB  |  43 lines

  1. /* wav.h - various structures and defines used by WAV converter. */
  2.  
  3. #ifndef WAV_H_INCLUDED
  4. #define WAV_H_INCLUDED
  5.  
  6. /* purloined from public Microsoft RIFF docs */
  7.  
  8. #define    WAVE_FORMAT_UNKNOWN        (0x0000)
  9. #define    WAVE_FORMAT_PCM            (0x0001) 
  10. #define    WAVE_FORMAT_ADPCM        (0x0002)
  11. #define WAVE_FORMAT_IEEE_FLOAT          (0x0003)
  12. #define    WAVE_FORMAT_ALAW        (0x0006)
  13. #define    WAVE_FORMAT_MULAW        (0x0007)
  14. #define    WAVE_FORMAT_OKI_ADPCM        (0x0010)
  15. #define WAVE_FORMAT_IMA_ADPCM        (0x0011)
  16. #define    WAVE_FORMAT_DIGISTD        (0x0015)
  17. #define    WAVE_FORMAT_DIGIFIX        (0x0016)
  18. #define WAVE_FORMAT_DOLBY_AC2           (0x0030)
  19. #define WAVE_FORMAT_GSM610              (0x0031)
  20. #define WAVE_FORMAT_ROCKWELL_ADPCM      (0x003b)
  21. #define WAVE_FORMAT_ROCKWELL_DIGITALK   (0x003c)
  22. #define WAVE_FORMAT_G721_ADPCM          (0x0040)
  23. #define WAVE_FORMAT_G728_CELP           (0x0041)
  24. #define WAVE_FORMAT_MPEG                (0x0050)
  25. #define WAVE_FORMAT_MPEGLAYER3          (0x0055)
  26. #define WAVE_FORMAT_G726_ADPCM          (0x0064)
  27. #define WAVE_FORMAT_G722_ADPCM          (0x0065)
  28.  
  29. typedef struct MsState {
  30.     LONG  index;    /* Index into step size table */
  31.     ULONG bpred;    /* Most recent sample value */
  32.     LONG  sample1;
  33.     LONG  sample2;
  34. } MsState_t;
  35.  
  36. typedef struct ImaState {
  37.    int index;        /* Index into step size table */
  38.    int previousValue;     /* Most recent sample value */
  39. } ImaState_t;
  40.  
  41.  
  42. #endif /* WAV_H_INCLUDED */
  43.