Contents

gain

Modifies the volume of all audio playback for the listener’s mixers.

Declaration

var gain: Double { get set }

Discussion

For mixers that require a listener, this property modifies the volume of all audio the framework plays back through the listener by way of the listener’s associated mixers. 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.