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:
Field
You must register any new WAVE format categories. See Registering Multimedia Formats for information on registering WAVE format categories.
WAVE Format Categories lists the currently defined WAVE format categories.
The <format-specific-fields> consist of zero or more bytes of parameters. Which parameters occur depends on the WAVE format category-see the following section for details. Playback software should be written to allow for (and ignore) any unknown <format-specific-fields> parameters that occur at the end of this field.