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

Link copied to clipboard
abstract fun recycle()

Allows to recycle the instance of this frame for a new frame.

Properties

Link copied to clipboard
abstract val buffer: ByteArray

Audio data samples where each sample is encoded in PCM_16, stored in a ByteArray.

Link copied to clipboard
abstract val samplesCount: Int

The count of samples present in the buffer. This is normally buffer.size / bytesPerChannel where bytesPerChannel = 2 for PCM_16 data.