<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioUnitDistortion",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioUnitDistortion"
  },
  "title" : "AVAudioUnitDistortion"
}
-->

# AVAudioUnitDistortion

An object that implements a multistage distortion effect.

```
class AVAudioUnitDistortion
```

## Topics

### Configuring the distortion

[`loadFactoryPreset(_:)`](/documentation/AVFAudio/AVAudioUnitDistortion/loadFactoryPreset(_:))

Configures the audio distortion unit by loading a distortion preset.

[`AVAudioUnitDistortionPreset`](/documentation/AVFAudio/AVAudioUnitDistortionPreset)

Constants that represent preset audio distortions.

### Getting and setting the distortion values

[`preGain`](/documentation/AVFAudio/AVAudioUnitDistortion/preGain)

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

[`wetDryMix`](/documentation/AVFAudio/AVAudioUnitDistortion/wetDryMix)

The blend of the distorted and dry signals.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)