setBalance method

Future<void> setBalance(
  1. double balance
)

Sets the stereo balance.

-1 - The left channel is at full volume; the right channel is silent. 1 - The right channel is at full volume; the left channel is silent. 0 - Both channels are at the same volume.

Implementation

Future<void> setBalance(double balance) async {
  _balance = balance;
  await creatingCompleter.future;
  return _platform.setBalance(playerId, balance);
}