A class that implements a multistage distortion effect.


class AVAudioUnitDistortion : AVAudioUnitEffect


Configuring the Audio Distortion Unit

func loadFactoryPreset(AVAudioUnitDistortionPreset)

Configures the audio distortion unit by loading a distortion preset.

Getting and Setting the Audio Distortion Unit Values

var preGain: Float

The gain, in decibels, applied to the signal before being distorted.

var wetDryMix: Float

The blend of the distorted and dry signals.


enum AVAudioUnitDistortionPreset

Constants that represent preset audio distortions.


Inherits From

Conforms To

See Also


class AVAudioUnitReverb

A class that implements a reverb effect.

class AVAudioUnitTimeEffect

A class that processes audio in non-real time.

class AVAudioUnitTimePitch

A class that provides good-quality playback rate and pitch shifting independently of each other.

class AVAudioUnitVarispeed

A class that allows control of the playback rate.

class AVAudioUnitEffect

A class that processes audio in real time.

class AVAudioUnitDelay

A class that implements a delay effect.

class AVAudioUnitEQ

A class that implements a multiband equalizer.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software