volumeChange

fun EffectsBuilder.volumeChange(inputChannels: Int, outputChannels: Int = 2, volumeChangeProvider: VolumeChangeProvider): EffectsBuilder

Add VolumeChangeProcessor effect that you can use to change the volume of the audio stream over time.

Parameters

inputChannels

The number of input channels.

outputChannels

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

volumeChangeProvider

The VolumeChangeProvider that will provide the volume change over time.


fun EffectsBuilder.volumeChange(inputChannels: Int, volume: Float = 1.0f, outputChannels: Int = 2, volumeChange: VolumeChangeProvider.(timeUs: Long) -> Float = { volume }): EffectsBuilder

Add VolumeChangeProcessor effect that you can use to change the volume of the audio stream over time.

Parameters

inputChannels

The number of input channels.

outputChannels

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

volume

The initial volume of the audio stream.

volumeChange

The function that will provide the volume change over time.