MCI_WAVE_SET_PARMS

The MCI_WAVE_SET_PARMS structure contains parameters for the MCI_SET message for waveform audio devices. When assigning data to the fields in this data structure, set the corresponding MCI flags in the dwFlags parameter of mciSendCommand to validate the fields.

typedef struct {
    DWORD  dwCallback;
    DWORD  dwTimeFormat;
    DWORD  dwAudio;
    WORD  wInput;
    WORD  wReserved0;
    WORD  wOutput;
    WORD  wReserved1;
    WORD  wFormatTag;
    WORD  wReserved2;
    WORD  nChannels;
    WORD  wReserved3;
    DWORD  nSamplesPerSec;
    DWORD  nAvgBytesPerSec;
    WORD  nBlockAlign;
    WORD  wReserved4;
    WORD  wBitsPerSample;
    WORD  wReserved5;
} MCI_WAVE_SET_PARMS;

Fields

The MCI_WAVE_SET_PARMS structure has the following fields:

dwCallback

The low-order word specifies a window handle used for the MCI_NOTIFY flag.

dwTimeFormat

Specifies the time format used by by the device.

dwAudio

Specifies the channel used for audio output.

wInput

Specifies the channel used for audio input.

wReserved0

Reserved.

wOutput

Specifies the channel used for output.

wReserved1

Reserved.

wFormatTag

Species the interpretation of the waveform data.

wReserved2

Reserved.

nChannels

Specifies mono (1) or stereo (2).

wReserved3

Reserved.

nSamplesPerSec

Specifies the samples per second used for the waveform.

nAvgBytesPerSec

Specifies the sample rate in bytes per second.

nBlockAlign

Specifies the block alignment of the data.

wReserved4

Reserved.

wBitsPerSample

Specifies the number of bits per sample.

wReserved5

Reserved.

See Also

MCI_SET