Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
984 B

  1. #ifndef __WAV_H__
  2. #define __WAV_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define ChunkIdRiff 'FFIR'
  7. #define ChunkIdFormat ' tmf'
  8. #define ChunkIdData 'atad'
  9. #define RiffTypeWav 'EVAW'
  10. #define FormatTagUncompressed 1
  11. typedef struct _WAV_FORMAT_CHUNK {
  12. ULONG32 ChunkId;
  13. ULONG32 ChunkSize;
  14. SHORT FormatTag;
  15. USHORT Channels;
  16. ULONG32 SamplesPerSec;
  17. ULONG32 AvgBytesPerSec;
  18. USHORT BlockAlign;
  19. USHORT BitsPerSample;
  20. } WAV_FORMAT_CHUNK, *PWAV_FORMAT_CHUNK;
  21. typedef struct _WAV_DATA_CHUNK {
  22. ULONG32 ChunkId;
  23. ULONG32 ChunkSize;
  24. // data is appended
  25. } WAV_DATA_CHUNK, *PWAV_DATA_CHUNK;
  26. typedef struct _WAV_HEADER_CHUNK {
  27. ULONG32 ChunkId;
  28. ULONG32 ChunkSize;
  29. ULONG32 RiffType;
  30. WAV_FORMAT_CHUNK Format;
  31. WAV_DATA_CHUNK Data;
  32. } WAV_HEADER_CHUNK, *PWAV_HEADER_CHUNK;
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif // __WAV_H__