Copyright © 2011-2018 MultiMedia Soft

OutputDeviceGetDesc method

Previous pageReturn to chapter overviewNext page



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


The total number of available output devices can be obtained using the OutputDeviceGetCount method.





[Visual Basic]

Public Function OutputDeviceGetDesc (

nOutputIndex as Int16

) as String



public string OutputDeviceGetDesc (

Int16 nOutputIndex




public: string OutputDeviceGetDesc (

Int16 nOutputIndex









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



Return value






Empty string

The value of the nIndex parameter was out of range. Use the value returned by the OutputDeviceGetCount method in order to know how many output devices are currently installed on the system.

Valid string

The string containing the friendly description of the requested output device.