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

# gain

The volume of audio playback.

## Declaration

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

## Discussion

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

- [gainCurveType](phase/phasegrouppresetsetting/gaincurvetype.md)
