int | Channels[Get] Once setup this should display the number of channels expected to be decoded |
int | SampleRate[Get] Once setup this should display the number of samples per second expected |
bool | Due to headers, sequential decode is required |
Constructor that takes in an audio decoder and decode callback delegate | |
void | Performs an audio decode setup with specified channels and sample rate |
int | GetTotalSamples ( ulong contentLength ) Cannot determine total samples via content length alone |
float [] | Performs a decode of full chunk data |
int Meta.Voice.Audio.Decoding.AudioDecoderJson.Channels |
---|
Once setup this should display the number of channels expected to be decoded |
int Meta.Voice.Audio.Decoding.AudioDecoderJson.SampleRate |
---|
Once setup this should display the number of samples per second expected |
bool Meta.Voice.Audio.Decoding.AudioDecoderJson.RequireSequentialDecode |
---|
Due to headers, sequential decode is required |
Meta.Voice.Audio.Decoding.AudioDecoderJson.AudioDecoderJson ( IAudioDecoder audioDecoder, AudioJsonDecodeDelegate onJsonDecoded ) |
---|
Constructor that takes in an audio decoder and decode callback delegate Parameters audioDecoder The audio decoder to receive onJsonDecodedThe delegate to be called every time a json chunk is decoded |
void Meta.Voice.Audio.Decoding.AudioDecoderJson.Setup ( int channels, int sampleRate ) |
---|
Performs an audio decode setup with specified channels and sample rate Parameters channels Channels supported by audio file sampleRateSample rate supported by audio file |
int Meta.Voice.Audio.Decoding.AudioDecoderJson.GetTotalSamples ( ulong contentLength ) |
---|
Cannot determine total samples via content length alone |
float [] Meta.Voice.Audio.Decoding.AudioDecoderJson.Decode ( byte [] chunkData, int chunkStart, int chunkLength ) |
---|
Performs a decode of full chunk data Parameters chunkData A chunk of bytes to be decoded into audio data chunkStartThe array start index into account when decoding chunkLengthThe total number of bytes to be used within chunkData Returns Returns an array of audio data floats that range from 0 to 1 |