API reference

AudioDecoderOpus Class

An audio decoder for OPUS audio data

Properties

Defaults to background but allows for foreground decode if desired.

Constructors & Destructors

Constructor with channels and sample rate
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