volume Change Effect
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
input Channels
The number of input channels.
output Channels
The number of output channels (defaults to stereo - 2).
volume Change Provider
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
input Channels
The number of input channels.
output Channels
The number of output channels (defaults to stereo - 2).
volume
The initial volume of the audio stream.
volume Change
The function that will provide the volume change over time.