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 |
| bool Meta.Voice.Audio.Decoding.AudioDecoderText.RequireSequentialDecode |
|---|
Due to headers, sequential decode is required |
| Meta.Voice.Audio.Decoding.AudioDecoderText.AudioDecoderText ( IAudioDecoder audioDecoder, AudioTextDecodeDelegate onTextDecode ) |
|---|
Constructor that takes in an audio decoder and decode callback delegate Parameters audioDecoder The audio decoder to receive onTextDecodeThe delegate to be called every time a text chunk is decoded |
| void Meta.Voice.Audio.Decoding.AudioDecoderText.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.AudioDecoderText.GetTotalSamples ( ulong contentLength ) |
|---|
Cannot determine total samples via content length alone |
| float [] Meta.Voice.Audio.Decoding.AudioDecoderText.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 from 0-1 |