volumeChangeEffect

fun volumeChangeEffect(inputChannels: Int, outputChannels: Int = 2, volumeChangeProvider: VolumeChangeProvider): VolumeChangeProcessor

Creates an VolumeChangeProcessor that you can use to change the volume of an 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 volumeChangeEffect(inputChannels: Int, volume: Float = 1.0f, outputChannels: Int = 2, volumeChange: VolumeChangeProvider.(timeUs: Long) -> Float = { volume }): VolumeChangeProcessor

Creates an VolumeChangeProcessor that you can use to change the volume of an 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.