setVolume method
Sets volume for playing sound identified by soundId
or streamId
At least volume
or both volumeLeft
and volumeRight
have to be passed
Implementation
Future setVolume({double? volume, double? volumeLeft, double? volumeRight}) {
return _pool.setVolume(
streamId: stream,
volume: volume,
volumeLeft: volumeLeft,
volumeRight: volumeRight);
}