---
title: overallGain
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudiounitsampler/overallgain
---

# overallGain

An adjustment for the gain of all the played notes, in decibels.

## Declaration

```swift
var overallGain: Float { get set }
```

## Discussion

Discussion The default value is 0.0 dB, and the range of valid values is -90.0 dB to 12.0 dB.

## See Also

### Getting and Setting Sampler Values

- [globalTuning](avfaudio/avaudiounitsampler/globaltuning.md)
- [stereoPan](avfaudio/avaudiounitsampler/stereopan.md)
- [masterGain](avfaudio/avaudiounitsampler/mastergain.md)
