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]
control.StreamBalanceSet (
nPlayer as Integer,
fValue as Single
) as enumErrorCodes
|
|
[C++]
short control.StreamBalanceSet (
short nPlayer,
float fValue
);
|
|
Parameter
|
Description
|
|
|
nPlayer
|
Number representing the zero-based index of the involved player
|
fValue
|
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, check the LastError property value in order to get the error code
|
enumErrorCodes.ERR_NOERROR (0)
|
The method call was successful
|
|