Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MCI_WAVE_SET_PARMS structure

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

Syntax


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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

See also

MCI
MCI Structures
MCI_SET
mciSendCommand

 

 

Community Additions

Show:
© 2014 Microsoft