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 lParam1 parameter of mciSendCommand to validate the fields.
typedef struct {
DWORD dwCallback;
DWORD dwTimeFormat;
DWORD dwAudio;
UINT wInput;
UINT wReserved0;
UINT wOutput;
UINT wReserved1;
UINT wFormatTag;
UINT wReserved2;
UINT nChannels;
UINT wReserved3;
DWORD nSamplesPerSec;
DWORD nAvgBytesPerSec;
UINT nBlockAlign;
UINT wReserved4;
UINT wBitsPerSample;
UINT wReserved5;
} MCI_WAVE_SET_PARMS;
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 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 (PCM only).
wReserved5
Reserved.
MCI_SET, WAVEFORMAT Data Structure, PCMWAVEFORMAT Data Structure