WAVE Format Chunk

The WAVE format chunk <fmt-ck> specifies the format of the <wave-data>. The <fmt-ck> is defined as follows:

<fmt-ck>      fmt(      <common-fields>
                          <format-specific-fields> )
<common-fields> 
          struct
          {
            USHORT  usFormatTag;          /* Format category       */
            USHORT  usChannels;           /* Number of channels    */
            ULONG   ulSamplesPerSec;      /* Sampling rate         */
            ULONG   ulAvgBytesPerSec;     /* For buffer estimation */
            USHORT  usBlockAlign;         /* Data block size       */
          }

The fields in the <common-fields> chunk are as follows: