---
title: preGain
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudiounitdistortion/pregain
---

# preGain

The gain that the audio unit applies to the signal before distortion, in decibels.

## Declaration

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

## Discussion

Discussion The default value is -6 dB. The valid range of values is -80 dB to 20 dB.

## See Also

### Getting and setting the distortion values

- [wetDryMix](avfaudio/avaudiounitdistortion/wetdrymix.md)
