---
title: inputGain
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudiosession/inputgain
---

# inputGain

The gain applied to inputs associated with the session.

## Declaration

```swift
var inputGain: Float { get }
```

## Discussion

Discussion This property returns a floating point value ranging from 0.0 to 1.0, where 0.0 represents the lowest gain setting, and 1.0 represents the highest gain setting. You can observe changes to the value of this property by using key-value observing. For more information, see Using Key-Value Observing in Swift.

## See Also

### Setting input gain

- [isInputGainSettable](avfaudio/avaudiosession/isinputgainsettable.md)
- [setInputGain(_:)](avfaudio/avaudiosession/setinputgain(_:).md)
