Index   Commented   Search   About

Getting the Capabilities of a Device

After you determine how many devices of a certain type are present in a system, you can inquire about the capabilities of each device. Use the following functions to determine the capabilities of audio devices.

Function
Description
auxGetDevCaps
Retrieves the capabilities of a given auxiliary audio device.
midiInGetDevCaps
Retrieves the capabilities of a given MIDI input device.
midiOutGetDevCaps
Retrieves the capabilities of a given MIDI output device.
waveInGetDevCaps
Retrieves the capabilities of a given waveform input device.
waveOutGetDevCaps
Retrieves the capabilities of a given waveform output device.

Each of these functions takes a pointer to a structure that it fills with information on the capabilities of a specified device. The following list shows the structures that correspond to each of the device-inquiry functions.

Function
Structure
auxGetDevCaps
AUXCAPS
midiInGetDevCaps
MIDIINCAPS
midiOutGetDevCaps
MIDIOUTCAPS
waveInGetDevCaps
WAVEINCAPS
waveOutGetDevCaps
WAVEOUTCAPS

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun