Contents

gain

The volume of audio playback.

Declaration

var gain: Double { get }

Discussion

The framework sets the value to the init(gain:rate:gainCurveType:rateCurveType:) parameter, clamped to the range between 0 and 1. A value of 0 silences the audio and 1 doesn’t modify the audio’s original volume.

See Also

Setting Loudness