AudioDecoderJson
(
audioDecoder
, onJsonDecoded
)
|
Constructor that takes in an audio decoder and decode callback delegate
Signature
Meta.Voice.Audio.Decoding.AudioDecoderJson.AudioDecoderJson(IAudioDecoder audioDecoder, AudioJsonDecodeDelegate onJsonDecoded) Parameters onJsonDecoded: AudioJsonDecodeDelegateÂ
The delegate to be called every time a json chunk is decoded
|
WillDecodeInBackground
: bool |
All json decoding should occur in background
Signature
bool Meta.Voice.Audio.Decoding.AudioDecoderJson.WillDecodeInBackground |
Decode
(
buffer
, bufferOffset
, bufferLength
, onSamplesDecoded
)
|
A method for decoded bytes and calling an AddSample delegate for each sample
Signature
void Meta.Voice.Audio.Decoding.AudioDecoderJson.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 following a sample decode
Returns void |