---
title: gain
framework: phase
role: symbol
role_heading: Instance Property
path: phase/phaseducker/gain
---

# gain

The amount of volume reduction.

## Declaration

```swift
var gain: Double { get }
```

## Discussion

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

- [identifier](phase/phaseducker/identifier.md)
- [isActive](phase/phaseducker/isactive.md)
- [attackTime](phase/phaseducker/attacktime.md)
- [attackCurve](phase/phaseducker/attackcurve.md)
- [releaseTime](phase/phaseducker/releasetime.md)
- [releaseCurve](phase/phaseducker/releasecurve.md)
