AudioDecoder

interface AudioDecoder

Represents an audio decoder for decoding audio.

Functions

Link copied to clipboard
abstract fun close()
Closes the audio decoder, releasing any allocated resources.
Link copied to clipboard
abstract fun decode(encoded: Array<Byte>): Array<Short>
Decodes the given encoded audio data into an array of audio samples.
Link copied to clipboard
abstract fun isOpen(): Boolean
Checks if the audio decoder is currently open and ready for decoding.
Link copied to clipboard
abstract fun open()
Opens the audio decoder.
Link copied to clipboard
abstract fun reset()
Resets the audio decoder to its initial state.