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 WASAPIMan class and the How to manage audio flow through WASAPI tutorial
Syntax
[Visual Basic] Public Function InputDeviceAttachedToPlayerIndexGet ( nPlayerIndex as Int16, ByRef nDeviceIndex as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes InputDeviceAttachedToPlayerIndexGet ( Int16 nPlayerIndex, ref Int32 nDeviceIndex ); |
[C++] public: enumErrorCodes InputDeviceAttachedToPlayerIndexGet ( Int16 nPlayerIndex, Int32 __gc *nDeviceIndex ); |
Parameter |
Description |
|
|
nPlayerIndex |
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 (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |