Copyright © 2006-2019 MultiMedia Soft

WASAPI.MixerInputDeviceAttachedInfoGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains information about a single input device previously attached to the WASAPI mixer through the WASAPI.MixerInputDeviceAttach 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.MixerInputDeviceAttachedInfoGet (

nListIndex as Integer,

nDeviceIndex as Integer,

nDeviceType as enumWasapiDeviceTypes

) as enumErrorCodes


 

[C++]

short control.WASAPI.MixerInputDeviceAttachedInfoGet (

long nDeviceIndex,

short *nDeviceIndex,

long *nDeviceType

);


 

Parameter

Description

 

 

nListIndex

Zero-based index of the input device within the list of input devices attached to the WASAPI mixer; the number of of input devices attached to the WASAPI mixer can be obtained through the WASAPI.MixerInputDeviceAttachedCountGet method.

nDeviceIndex

Reference that, on return from the method call, will contain the the zero-based index of the input device within the list of capture or loopback devices installed inside the system. The total number of available WASAPI capture or loopback devices can be obtained using the WASAPI.DeviceGetCount method.

nDeviceType

Reference that, on return from the method call, will contain the type of input device.

Supported values are the following:

Mnemonic Value

Value

Meaning

WASAPI_DEVICE_TYPE_CAPTURE

1

Audio capture device.

WASAPI_DEVICE_TYPE_LOOPBACK

2

Audio loopback device.

 

 

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