Contents

gain

The amount of volume reduction.

Declaration

var gain: Double { get }

Discussion

When source and target sounds play simultaneously, the value of this property determines the amount that the listener can hear the target sound. A value of 0 results in full attenuation, and 1 results in no attenuation. The framework clamps the value to the range between 0 and 1.

See Also

Configuring Volume Reduction