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

Public StreamOutputSpeakerSwap (

nPlayerIndex1 as Int16,

nPlayerIndex2 as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes StreamOutputSpeakerSwap (

Int16 nPlayerIndex1,

Int16 nPlayerIndex2

);


 

[C++]

public: enumErrorCodes StreamOutputSpeakerSwap (

Int16 nPlayerIndex1,

Int16 nPlayerIndex2

);


 

 

Parameter

Description

 

 

nPlayerIndex1

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

nPlayerIndex2

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.