Input

interface Input

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

Types

Link copied to clipboard
interface Frame

Defines the properties of a single audio input Frame. The buffer in each Frame is mutable which allows to apply audio processing operations to the input audio before it gets written / played somewhere else.

Functions

Link copied to clipboard

Subscribes to the provided onFrameAvailable to be notified when a new Frame is available for this input. The returned Closeable must be closed when done working with this input otherwise underlying resources will be leaked.

Properties

Link copied to clipboard
abstract val bufferSize: Int

Size of audio data expected to be delivered per frame.

Link copied to clipboard
abstract val channels: Int

Number of channels in audio data.

Link copied to clipboard
abstract val sampleRate: Int

Number of samples for each audio channel per second, typically 44100Hz.