CompressorParams

Parameter IDs for the AudioEffectType.COMPRESSOR effect.

See also

Properties

Link copied to clipboard
const val ATTACK_MS: Int = 2

Time for the compressor to reach full gain reduction after signal exceeds threshold. Range: 0.1 to 100.0. Default: 10.0. Unit: ms.

Link copied to clipboard
const val MAKEUP_GAIN: Int = 4

Additional gain applied after compression to restore perceived loudness. Range: 0.0 to 40.0. Default: 0.0. Unit: dB.

Link copied to clipboard
const val RATIO: Int = 1

Compression ratio (e.g., 4.0 means 4:1 compression). Range: 1.0 to 20.0. Default: 4.0. Unit: ratio.

Link copied to clipboard
const val RELEASE_MS: Int = 3

Time for the compressor to return to unity gain after signal drops below threshold. Range: 10.0 to 1000.0. Default: 100.0. Unit: ms.

Link copied to clipboard
const val THRESHOLD: Int = 0

Threshold in dB above which compression begins. Range: -60.0 to 0.0. Default: -20.0. Unit: dB.