API reference

IAudioDecoder Interface

An interface for handling audio decoding

Properties

Whether or not this decoder should run all decoding on a background thread. If true, performant but requires multiple buffers. If false, buffers are not required but less performant.

Member Functions

A method for decoded bytes and calling onSamplesDecoded as float[] are decoded
Parameters
buffer
A buffer of bytes to be decoded into audio sample data
bufferOffset
The buffer start offset used for decoding a reused buffer
bufferLength
The total number of bytes to be used from the buffer
onSamplesDecoded
Callback with sample buffer