setBalance method

Future<void> setBalance(
  1. WebSocket client,
  2. double balance
)

Sets the balance of the audio playback.

client: The WebSocket client to which the balance command will be sent. balance: The desired balance level (-1.0 for left, 0.0 for center, 1.0 for right).

Implementation

Future<void> setBalance(WebSocket client, double balance) async {
  client.add('setBalance:$balance'); // Send the balance command to the client
}