API reference
API reference
Select your platform
No SDKs available
No versions available

AudioDecoderOpus Class

An audio decoder for OPUS audio data

Constructors

AudioDecoderOpus ( channels , samplerate )
Constructor with channels and sample rate
Signature
Meta.Voice.Audio.Decoding.AudioDecoderOpus.AudioDecoderOpus(int channels, int samplerate)
Parameters
channels: int
samplerate: int

Properties

WillDecodeInBackground : bool
[Get][Set]
Defaults to background but allows for foreground decode if desired.
Signature
bool Meta.Voice.Audio.Decoding.AudioDecoderOpus.WillDecodeInBackground

Methods

Decode ( buffer , bufferOffset , bufferLength , onSamplesDecoded )
A method for decoded bytes and calling onSamplesDecoded as float[] are decoded
Signature
void Meta.Voice.Audio.Decoding.AudioDecoderOpus.Decode(byte[] buffer, int bufferOffset, int bufferLength, AudioSampleDecodeDelegate onSamplesDecoded)
Parameters
buffer: byte []  A buffer of bytes to be decoded into audio sample data
bufferOffset: int  The buffer start offset used for decoding a reused buffer
bufferLength: int  The total number of bytes to be used from the buffer
onSamplesDecoded: AudioSampleDecodeDelegate  Callback with sample buffer
Returns
void