Copyright © 2006-2018 MultiMedia Soft

WASAPI.MixerInputDeviceAttachedCountGet method

Previous pageReturn to chapter overviewNext page



Obtains the number of input devices previously attached to the WASAPI mixer through the WASAPI.MixerInputDeviceAttach method.


Information about a specific input device attached to the WASAPI mixer can be obtained through the WASAPI.MixerInputDeviceAttachedInfoGet 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.

Further information about management of audio devices in Windows Vista and later versions can be found inside the How to access settings of audio devices in Windows Vista and later versions tutorial.





[Visual Basic]

control.WASAPI.MixerInputDeviceAttachedCountGet (

nCount as Long

) as enumErrorCodes



short control.WASAPI.MixerInputDeviceAttachedCountGet (

long *nCount








Reference that, on return from the method call, will contain the number of attached input devices.




Return value






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