Copyright © 2006-2019 MultiMedia Soft

GetOutputDevicesCount method

Previous pageReturn to chapter overviewNext page

Remarks

 

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.

 

 

Syntax

 

[Visual Basic]

control.GetOutputDevicesCount (

) as integer


 

[C++]

short control.GetOutputDevicesCount (

);


 

 

Return value

 

The number of output devices currently installed on the system.