WillDecodeInBackground
: bool
[Get] |
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.
Signature
bool Meta.Voice.Audio.Decoding.IAudioDecoder.WillDecodeInBackground |
Decode
(
buffer
, bufferOffset
, bufferLength
, onSamplesDecoded
)
|
A method for decoded bytes and calling onSamplesDecoded as float[] are decoded
Signature
void Meta.Voice.Audio.Decoding.IAudioDecoder.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 |