Copyright © 2005-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]

Public Function GetOutputSpeakersCount (

nOutputIndex as Int16

) as Int16


 

[C#]

public Int16 GetOutputSpeakersCount (

Int16 nOutputIndex

);


 

[C++]

public: Int16 GetOutputSpeakersCount (

Int16 nOutputIndex

);


 

 

Parameter

Description

 

 

nOutputIndex

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)