Input

interface Input

Defines the audio input source model that is available to be read from by the processor.

Types

Frame
Link copied to clipboard
interface Frame
Defines the properties of a single audio input Frame.

Functions

subscribeTo
Link copied to clipboard
abstract fun subscribeTo(onFrameAvailable: Consumer<AudioProcessor.Input.Frame>): Closeable
Subscribes to the provided onFrameAvailable to be notified when a new Frame is available for this input.

Properties

bufferSize
Link copied to clipboard
abstract val bufferSize: Int
Size of audio data expected to be delivered per frame.
channels
Link copied to clipboard
abstract val channels: Int
Number of channels in audio data.
sampleRate
Link copied to clipboard
abstract val sampleRate: Int
Number of samples for each audio channel per second, typically 44100Hz.