volume property

double volume

Gets/Sets volume. Note that this is a linear amplitude multiplier; callers should use a sqrt value of 0-1 to get an equal-power fade, e.g. 'half volume' should be audio.setVolume(sqrt(.5)), to get something that 'sounds' half as loud as 'full' volume.

Implementation

double get volume => _volume;