Copyright © 2005-2019 MultiMedia Soft

GetPlayerSpeakersCount method

Previous pageReturn to chapter overviewNext page

Remarks

 

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

 

This method can be used in alternative to the GetOutputSpeakersCount 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 GetPlayerSpeakersCount (

nPlayerIndex as Int16

) as Int16


 

[C#]

public Int16 GetPlayerSpeakersCount (

Int16 nPlayerIndex

);


 

[C++]

public: Int16 GetPlayerSpeakersCount (

Int16 nPlayerIndex

);


 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player.

 

 

Return value

 

Value

Meaning

 

 

Value > 0

The number of available speakers

Negative value

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