VolumeChangeProcessor

class VolumeChangeProcessor(inputChannels: Int, outputChannels: Int, volumeChangeProvider: VolumeChangeProvider) : BaseAudioProcessor

An AudioProcessor that handles changing the volume on an audio channel.

Input and output are 16-bit PCM.

Inspired by ChannelMixingAudioProcessor.

Parameters

inputChannels

The number of input channels.

outputChannels

The number of output channels.

volumeChangeProvider

A provider that returns the volume for a given time.

Constructors

Link copied to clipboard
constructor(inputChannels: Int, outputChannels: Int, volumeChangeProvider: VolumeChangeProvider)

Functions

Link copied to clipboard
Link copied to clipboard
override fun flush()
Link copied to clipboard
open override fun getOutput(): ByteBuffer
Link copied to clipboard
open override fun isActive(): Boolean
Link copied to clipboard
open override fun isEnded(): Boolean
Link copied to clipboard
Link copied to clipboard
override fun queueEndOfStream()
Link copied to clipboard
open override fun queueInput(inputBuffer: ByteBuffer)
Link copied to clipboard
override fun reset()