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

# gain

The amount of sound the source emanates.

## Declaration

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

## Discussion

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.
