Copyright © 2006-2018 MultiMedia Soft

GetOutputDevicesCount method

Previous pageReturn to chapter overviewNext page



Retrieves the number of output devices (sound cards) currently installed on the system.


The friendly name of each output device can be obtained using the GetOutputDeviceDesc method.


IMPORTANT NOTE ABOUT THE WINDOWS VERSION: This method is only intended for usage when the operating system is Windows XP or older versions; for Windows Vista and higher versions it's recommended using methods exposed by the CoreAudioDevices COM object.





[Visual Basic]

control.GetOutputDevicesCount (

) as integer



short control.GetOutputDevicesCount (




Return value


The number of output devices currently installed on the system.