Frame

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

recycle
Link copied to clipboard
abstract fun recycle()
Allows to recycle the instance of this frame for a new frame.

Properties

buffer
Link copied to clipboard
abstract val buffer: ByteArray
Audio data samples where each sample is encoded in PCM_16, stored in a ByteArray.
samplesCount
Link copied to clipboard
abstract val samplesCount: Int
The count of samples present in the buffer.