AudioEncoder

interface AudioEncoder

Represents an audio encoder for encoding audio.

Functions

Link copied to clipboard
abstract fun close()
Closes the audio encoder, releasing any allocated resources.
Link copied to clipboard
abstract fun encode(samples: Array<Short>): Array<Byte>
Encodes the given audio samples into a compressed format represented as an array of bytes.
Link copied to clipboard
abstract fun isOpen(): Boolean
Checks if the audio encoder is currently open and ready for encoding operations.
Link copied to clipboard
abstract fun open()
Opens the audio encoder, preparing it for encoding operations.
Link copied to clipboard
abstract fun reset()
Resets the audio encoder to its initial state.