CompressorConfig

data class CompressorConfig(val thresholdDb: Float = -20f, val ratio: Float = 4.0f, val attackMs: Float = 10.0f, val releaseMs: Float = 100.0f, val autoMakeup: Boolean = false, val makeupDb: Float = 0.0f)

Configuration for audio compressor effect.

A compressor reduces the dynamic range of audio by attenuating loud sounds and optionally boosting quiet sounds.

Constructors

Link copied to clipboard
constructor(thresholdDb: Float = -20f, ratio: Float = 4.0f, attackMs: Float = 10.0f, releaseMs: Float = 100.0f, autoMakeup: Boolean = false, makeupDb: Float = 0.0f)

Properties

Link copied to clipboard

Time to reach full compression (milliseconds)

Link copied to clipboard

Automatically compensate for gain reduction

Link copied to clipboard

Manual makeup gain when autoMakeup is false (dB)

Link copied to clipboard

Compression ratio (e.g., 4.0 means 4:1 compression)

Link copied to clipboard

Time to release compression (milliseconds)

Link copied to clipboard

Signal level above which compression begins (dB)