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

control.GetPlayerSpeakersCount (

nPlayer as Integer

) as Integer


 

[C++]

short control.GetPlayerSpeakersCount (

short nPlayer

);


 

Parameter

Description

 

 

nPlayer

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

 

 

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)