|
Getting the Number of Devices
Use the following functions to determine how many devices of a certain type
are available in a given system.
Function
| Description
| auxGetNumDevs
| Retrieves the number of auxiliary audio devices present in the system.
| midiInGetNumDevs
| Retrieves the number of MIDI input devices present in the system.
| midiOutGetNumDevs
| Retrieves the number of MIDI output devices present in the system.
| waveInGetNumDevs
| Retrieves the number of waveform input devices present in the system.
| waveOutGetNumDevs
| Retrieves the number of waveform output devices present in the system.
|
Audio devices are identified by a device identifier. The device identifier is
determined implicitly from the number of devices present in a given system.
Device identifiers range from zero to one less than the number of devices present.
For example, if there are two MIDI output devices in a system, valid device
identifiers are 0 and 1.
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
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
|