Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ waveInGetDevCaps(3mms) — Multimedia Services 2.4B

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

waveInGetNumDevs(3mms)

waveInGetDevCaps(3mms)  —  Subroutines

 
 
 
 

Name

 
waveInGetDevCaps --- Query the specified waveform audio input device to determine its capabilities
 
 

Syntax

 
 
 

 #include <mme/mme_api.h>
 MMRESULT waveInGetDevCaps (UINT uClassDeviceID,
                           LPWAVEINCAPS lpCaps,
                           UINT wSize);
 

 
 
 

Arguments

 
UINT uClassDeviceID
Identifies the waveform audio input device.

 
LPWAVEINCAPS lpCaps
Specifies a pointer to a WAVEINCAPS data structure. This data structure is filled with information about the capabilities of the device. 

 
The WAVEINCAPS data structure must be allocated with the mmeAllocMem function before being passed to the waveInGetDevCaps function. 
 
 
 
 
 
See the mmeAllocMem(3mms) reference page for more information about allocating memory for data structures. 
 
 
 

 
UINT wSize
Specifies the size of the WAVEHDR data structure. 
 
 

Description

 
The waveInGetDevCaps function queries the specified waveform audio input device to determine its capabilities. The device ID specified by the uClassDeviceID argument varies from zero to one fewer than the number of devices present. The WAVE_MAPPER constant can also be used as a device ID. (Use the waveInGetNumDevs function to determine the number of waveform audio input devices present in the system.) 

 
Only wSize bytes (or fewer) of information is copied to the location pointed to by the lpCaps argument. If the value of the wSize argument is zero, nothing is copied and the function returns MMSYSERR_NOERROR. 
 

Extensions

 
The WAVEINCAPS data structure has been extended to support 8-bit mono MULAW at 8 kHz waveform audio format. The WAVE_FORMAT_08M08_MULAW format identifier is a Digital extension to the API specification to support the built-in audio capabilities of Alpha AXP workstations. 
 
 
 
 
 

Return Values

 
Returns MMSYSERR_NOERROR if the function is successful; otherwise, it returns one of the following error codes:
 
 

 
MMSYSERR_BADDEVICEID@T{ The specified device ID is out of range. T} MMSYSERR_NODRIVER@T{ No waveIn driver is installed. T} MMSYSERR_INVALPARAM@T{ The size of the WAVEINCAPS data structure is invalid.  T}

 
 
 

See Also

 
 
 
 
 
waveInGetNumDevs(3mms)
 
 
 
 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026