FADE_MS

const val FADE_MS: Int = 1

Duration of a GAIN_DB change in milliseconds.

0 (default) applies the new gain immediately. Values greater than 0 ramp linear amplitude from the currently applied gain to the new target over that duration. Changing GAIN_DB while a ramp is running retargets from the current applied amplitude so the output stays click-free.

Set this before GAIN_DB. Range: 0.0 and up. Default: 0.0. Unit: ms.