Contents

gain

The amount of sound the source emanates.

Declaration

var gain: Double { get set }

Discussion

The framework clamps the value to the range between 0 and 1, where 0 silences the audio and 1 doesn’t modify the audio’s original volume.