Previous Next

KSDATAFORMAT_WAVEFORMATEX

The KSDATAFORMAT_WAVEFORMATEX structure provides detailed information about the data format of an audio stream consisting of wave data.

typedef struct
{
  KSDATAFORMAT  DataFormat;
  WAVEFORMATEX  WaveFormatEx;
} KSDATAFORMAT_WAVEFORMATEX, *PKSDATAFORMAT_WAVEFORMATEX;

Members

DataFormat
Specifies the general features of the stream's data format. This member is a structure of type KSDATAFORMAT.
WaveFormatEx
Describes the wave-specific details of the audio stream's data format. This member contains an initialized WAVEFORMATEX structure.

Headers

Declared in ksmedia.h. Include ksmedia.h.

Comments

In response to an input DataRange parameter that specifies a WAVEFORMATEX format (see example in PCM Stream Data Range), the IMiniport::DataRangeIntersection method checks to see if the specified pin supports a compatible WAVEFORMATEX format. If so, the method outputs a KSDATAFORMAT_WAVEFORMATEX structure (see example in PCM Stream Data Format) to the buffer that its ResultantFormat parameter points to.

Note that the WaveFormatEx member of the KSDATAFORMAT_WAVEFORMATEX structure can be extended to include additional format information (for example, a channel configuration mask). For details, see WAVEFORMATEXTENSIBLE.

See Also

KSDATAFORMAT, WAVEFORMATEX, WAVEFORMATEXTENSIBLE, IMiniport::DataRangeIntersection