MCI_WAVE_SET_PARMS

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

typedef struct {
    DWORD 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. This member can be one of the following:
WAVE_FORMAT_ADPCM
Microsoft Corporation
WAVE_FORMAT_ALAW
Microsoft Corporation
WAVE_FORMAT_ANTEX_ADPCME
Antex Electronics Corporation
WAVE_FORMAT_APTX
Audio Processing Technology
WAVE_FORMAT_AUDIOFILE_AF10
Audiofile
WAVE_FORMAT_AUDIOFILE_AF36
Audiofile
WAVE_FORMAT_CONTROL_RES_CR10
Control Resources Corporation
WAVE_FORMAT_CONTROL_RES_VQLPC
Control Resources Corporation
WAVE_FORMAT_CREATIVE_ADPCM
Creative Labs, Inc.
WAVE_FORMAT_CREATIVE_FASTSPEECH10
Creative Labs, Inc.
WAVE_FORMAT__CREATIVE__FASTSPEECH8
Creative Labs, Inc.
WAVE_FORMAT_DIALOGIC_OKI_ADPCM
Dialogic Corporation
WAVE_FORMAT_DIGIADPCM
DSP Solutions, Inc.
WAVE_FORMAT_DIGIFIX
DSP Solutions, Inc.
WAVE_FORMAT_DIGIREAL
DSP Solutions, Inc.
WAVE_FORMAT_DIGISTD
DSP Solutions, Inc.
WAVE_FORMAT_DOLBY_AC2
Dolby Laboratories, Inc.
WAVE_FORMAT_DSPGROUP_TRUESPEECH
DSP Group, Inc.
WAVE_FORMAT_DVI_ADPCM
Intel Corporation
WAVE_FORMAT_ECHOSC1
Echo Speech Corporation
WAVE_FORMAT_FM_TOWNS_SND
Fujitsu, Ltd.
WAVE_FORMAT_G721_ADPCM
Antex Electronics Corporation
WAVE_FORMAT_G723_ADPCM
Antex Electronics Corporation
WAVE_FORMAT_GSM610
Microsoft Corporation
WAVE_FORMAT_IBM_CVSD
International Business Machines
WAVE_FORMAT_IMA_ADPCM
Intel Corporation
WAVE_FORMAT_MEDIASPACE_ADPCM
VideoLogic, Inc.
WAVE_FORMAT_MPEG
Microsoft Corporation
WAVE_FORMAT_MULAW
Microsoft Corporation
WAVE_FORMAT_NMS_VBXADPCM
Natural MicroSystems Corporation
WAVE_FORMAT_OKI_ADPCM
OKI
WAVE_FORMAT_OLIADPCM
Ing C. Olivetti & C., S.p.A.
WAVE_FORMAT_OLICELP
Ing C. Olivetti & C., S.p.A.
WAVE_FORMAT_OLIGSM
Ing C. Olivetti & C., S.p.A.
WAVE_FORMAT_OLIOPR
Ing C. Olivetti & C., S.p.A.
WAVE_FORMAT_OLISBC
Ing C. Olivetti & C., S.p.A.
WAVE_FORMAT_SIERRA_ADPCM
Sierra Semiconductor Corporation
WAVE_FORMAT_SONARC
Speech Compression
WAVE_FORMAT_UNKNOWN
Microsoft Corporation
WAVE_FORMAT_YAMAHA_ADPCM
Yamaha Corporation of America
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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mmsystem.h.

See Also

MCI Overview, MCI Structures, MCI_SET, mciSendCommand