Copyright © 2001-2019 MultiMedia Soft

StreamOutputSpeakerSwap method

Previous pageReturn to chapter overviewNext page

Remarks

 

Given two players, both assigned to the same output device, swaps the respective assigned speakers: note that it's not allowed swapping speakers of players currently redirecting their output to different output devices.

 

A call to this method will have no effect if the involved player has been added to a custom stream mixer through the StreamMixerPlayerAdd 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.StreamOutputSpeakerSwap (

nPlayer1 as Integer,

nPlayer2 as Integer

) as enumErrorCodes


 

[C++]

short control.StreamOutputSpeakerSwap (

short nPlayer1,

short nPlayer2

);


 

 

Parameter

Description

 

 

nPlayer1

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

nPlayer2

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

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.NOERROR (0)

The method call was successful