WASAPI.DeviceGetCount method |
|
Remarks
Retrieves the number of WASAPI devices currently installed inside the system.
The friendly name of each WASAPI device can be obtained using the WASAPI.DeviceGetDesc method.
This method is only intended for usage with Windows Vista and later versions.
For further details about the use of WASAPI see the WASAPI object and the How to manage audio flow through WASAPI tutorial.
Syntax
[Visual Basic] control.WASAPI.DeviceGetCount ( nDeviceType as enumWasapiDeviceTypes, nDevicesCount as Integer ) as enumErrorCodes |
[C++] short control.WASAPI.DeviceGetCount ( short nDeviceType, short *nDevicesCount ); |
Parameter |
Description |
||||||||||||
|
|
||||||||||||
nDeviceType |
The type of device. Supported values are the following:
|
||||||||||||
nDevicesCount |
Reference that, on return from the method call, will contain the number of devices for the given device type. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |