fade Audio Out
fun EffectsBuilder.fadeAudioOut(totalDurationUs: Long, inputChannels: Int, outputChannels: Int = 2, initialVolume: Float = 1.0f, finalVolume: Float = 0.0f, fadeDurationUs: Long = TimeUnit.SECONDS.toMicros(1)): EffectsBuilder
Add an VolumeChangeProcessor to the EffectsBuilder that you can use to fade the audio out at the end of the video.
Parameters
total Duration Us
The total duration of the video in microseconds.
input Channels
The number of input channels.
output Channels
The number of output channels (defaults to stereo - 2).
initial Volume
The initial volume of the audio stream.
final Volume
The final volume of the audio stream.
fade Duration Us
The duration of the fade out in microseconds.