duck_wav.h 848 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _duck_wav_h
  2. #define _duck_wav_h
  3. #if defined(__cplusplus)
  4. extern "C" {
  5. #endif
  6. typedef struct tDKWAVEFORM
  7. {
  8. unsigned short wFormatTag; /* format type */
  9. unsigned short nChannels; /* number of channels (i.e. mono, stereo...) */
  10. unsigned int nSamplesPerSec; /* sample rate */
  11. unsigned int nAvgBytesPerSec; /* for buffer estimation */
  12. unsigned short nBlockAlign; /* block size of data */
  13. unsigned short wBitsPerSample; /* Number of bits per sample of mono data */
  14. unsigned short cbSize; /* The count in bytes of the size of
  15. extra information (after cbSize) */
  16. unsigned short wSamplesPerBlock;
  17. unsigned int userData[16];
  18. } DKWAVEFORM;
  19. /* don't try to endian fix the userData ! */
  20. static int DKWAVEFORM_REFLECT[ ] = { 2,2, 4,4, 2,2,2,2 };
  21. #if defined(__cplusplus)
  22. }
  23. #endif
  24. #endif