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 WASAPIMan class and the How to manage audio flow through WASAPI tutorial

 

 

Syntax

 

[Visual Basic]

Public Function MixerInputDeviceAttachedInfoGet (

nListIndex as Int32,

ByRef nDeviceIndex as Int32,

ByRef nDeviceType as enumWasapiDeviceTypes

) as enumErrorCodes


 

[C#]

public enumErrorCodes MixerInputDeviceAttachedInfoGet (

Int32 nListIndex,

ref Int32 nDeviceIndex,

ref enumWasapiDeviceTypes nDeviceType

);


 

[C++]

public: enumErrorCodes MixerInputDeviceAttachedInfoGet (

Int32 nListIndex,

Int32 __gc *nDeviceIndex,

enumWasapiDeviceTypes __gc *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 (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.