MCI_WAVE_SET_PARMS

The MCI_WAVE_SET_PARMS structure contains information for the MCI_SET command for waveform-audio devices.

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

Members

dwCallback

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

dwTimeFormat

Device's time format.

dwAudio

Channel number for audio output. Typically used when turning a channel on or off.

wInput

Audio input channel.

wOutput

Output device to use. For example, this value could be 2 if a system had two installed sound cards.

wFormatTag

Format of the waveform-audio data, such as WAVE_FORMAT_PCM. Possible values are defined in Mmreg.h.

wReserved2

Reserved.

nChannels

Mono (1) or stereo (2).

wReserved3

Reserved.

nSamplesPerSec

Samples per second.

nAvgBytesPerSec

Sample rate in bytes per second.

nBlockAlign

Block alignment of the data.

wReserved4

Reserved.

wBitsPerSample

Bits per sample.

wReserved5

Reserved.

Remarks

When assigning data to the members of this structure, set the corresponding flags in the fdwCommand parameter of the mciSendCommand function to validate the members.

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Mmsystem.h; include Windows.h.

See Also

MCI, MCI Structures, MCI_SET, mciSendCommand