setVolumePan()
The τ Player API
setVolumePan()
- Dart API: setVolumePan().
parameter 1 is volume, a floating point number between 0 and 1.
parameter 2 is pan, a floating point number between -1 and 1. When -1, right is muted, when 1 left is muted.
Volume and Pan can be changed when player is running or before starting.
If used before startPlayer()
, the required volume is kept/delayed and set during the following call to startPlayer()
.
Example:
await myPlayer.setVolumePan(0.5,-0.5);
Lorem ipsum ...