WASAPI.InputDeviceAttachedToPlayerIndexGet method |
|
Remarks
Obtains the zero-based index of the input device previously attached to the given player through a call to the WASAPI.InputDeviceAttachToPlayer 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.InputDeviceAttachedToPlayerIndexGet ( nPlayer as Integer, nDeviceIndex as Integer, ) as enumErrorCodes |
[C++] short control.WASAPI.InputDeviceAttachedToPlayerIndexGet ( short nPlayer, short *nDeviceIndex ); |
Parameter |
Description |
|
|
nPlayer |
Number representing the zero-based index of the involved player |
nDeviceIndex |
Reference that, on return from the method call, will contain the index of the input device. The returned index may be used, for example, to obtain the friendly descriptor of the device through the WASAPI.DeviceGetDesc method. |
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 |