Copyright © 2001-2018 MultiMedia Soft

GetOutputSpeakersCount method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves the number of speakers available on the given output device (sound card).

 

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

 

For further details about speakers assignment, take a look to the How to work with multiple output devices and speakers section.

 

 

Syntax

 

[Visual Basic]

control.GetOutputSpeakersCount (

nIndex as Integer

) as Integer


 

[C++]

short control.GetOutputSpeakersCount (

short nIndex

);


 

Parameter

Description

 

 

nIndex

Number representing the zero-based index of the involved output device.

 

 

Return value

 

Value

Meaning

 

 

Value > 0

The number of speakers available on the given output device

Negative value

An error occurred (see the LastError property for further error details)