Platform SDK: DirectX

DirectSoundEnum.GetName

The DirectSoundEnum.GetName method returns the name of a device driver in the enumeration.

object.GetName(index As Long) As String
object
Object expression that resolves to a DirectSoundEnum object.
index
Index of the device in the enumeration.

Return Values

The method returns the name of the device driver. This is not the friendly name of the device, which is returned by DirectSoundEnum.GetDescription.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.