Copyright © 2008-2018 MultiMedia Soft

WASAPI.RenderDeviceGetDesc method

Previous pageReturn to chapter overviewNext page



Retrieves the friendly description of the requested WASAPI device. This method is useful when you have to fill a combo box with the friendly names of available WASAPI devices.

The total number of available WASAPI devices can be obtained using the WASAPI.RenderDeviceGetCount 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 playback through WASAPI tutorial.





[Visual Basic]

control.WASAPI.RenderDeviceGetDesc (

nDeviceIndex as Integer

) as String



LPCTSTR control.WASAPI.RenderDeviceGetDesc (

short nDeviceIndex








Number representing the zero-based index of the WASAPI device whose friendly name must be retrieved




Return value






Empty string

The value of the nDeviceIndex parameter was out of range. Use the value returned by the WASAPI.RenderDeviceGetCount method in order to know how many WASAPI devices are currently installed inside the system.

Valid string

The string containing the friendly description of the requested device.