Remarks
Changes the volume balance for the given player: changing this value will not affect the volume balance of other players. The current volume balance can be obtained through the StreamBalanceGet method.
This method is ignored if speakers assignment has been enabled through the EnableSpeakers property.
Syntax
[Visual Basic]
Public Function StreamBalanceSet (
nPlayerIndex as Int16,
fValue as float
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes StreamBalanceSet (
Int16 nPlayerIndex,
float fValue
);
|
|
[C++]
public: enumErrorCodes StreamBalanceSet (
Int16 nPlayerIndex,
float fValue
);
|
|
Parameter
|
Description
|
|
|
nPlayerIndex
|
Number representing the zero-based index of the involved player
|
nValue
|
The new volume balance value in the range from -50 to 50. The value 0 means that the balance is centered
|
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
|
|