setVolume method
Sets the volume (amplitude).
0 is mute and 1 is the max volume. The values between 0 and 1 are linearly interpolated.
Implementation
Future<void> setVolume(double volume) async {
_volume = volume;
await creatingCompleter.future;
return _platform.setVolume(playerId, volume);
}