volume property

double get volume

Output gain, 0..1. A GainNode rather than scaling samples, so volume costs the producer nothing and changes take effect without touching the ring.

Implementation

double get volume => _gain.gain.value;
set volume (double value)

Implementation

set volume(double value) => _gain.gain.value = value;