Waveform Input Driver Data Structures

Each message received by the widMessage function comes with two DWORD parameters. For some messages, one of these parameters points to a data structure containing additional information from the client, or to an empty data structure for the driver to fill with information for the client.

Waveform input device drivers use the data structures listed in the following table. See “Audio Device Driver Reference,” later in this chapter, for details on these data structures.

Data Structures for Waveform Input Device Drivers

PCMWAVEFORMAT

A client-filled structure providing specific information about the format for PCM waveform data.

WAVEFORMAT

A client-filled structure providing general information about the format of waveform data.

WAVEHDR

A client-filled structure identifying a waveform data block.

WAVEOPENDESC

A client-filled structure providing information about opening a waveform device.

WAVEINCAPS

A driver-filled structure providing a client with information about the capabilities of a waveform input device.

With the exception of WAVEINCAPS, these are the same data structures used by waveform output drivers.