fadeAudioOutEffect

fun fadeAudioOutEffect(totalDurationUs: Long, inputChannels: Int, outputChannels: Int = 2, initialVolume: Float = 1.0f, finalVolume: Float = 0.0f, fadeDurationUs: Long = TimeUnit.SECONDS.toMicros(1)): VolumeChangeProcessor

Creates an VolumeChangeProvider that you can use to fade the audio out at the end of the video.

Parameters

totalDurationUs

The total duration of the video in microseconds.

inputChannels

The number of input channels.

outputChannels

The number of output channels (defaults to stereo - 2).

initialVolume

The initial volume of the audio stream.

finalVolume

The final volume of the audio stream.

fadeDurationUs

The duration of the fade out in microseconds.