API reference

IAudioDecoder Interface

An interface for handling audio decoding

Properties

Channels : int
[Get]
Once setup this should display the number of channels expected to be decoded
Signature
int Meta.Voice.Audio.Decoding.IAudioDecoder.Channels
RequireSequentialDecode : bool
[Get]
A property for whether the decoder can decode chunks on separate threads simultaneously or if they need to be performed sequentially.
Signature
bool Meta.Voice.Audio.Decoding.IAudioDecoder.RequireSequentialDecode
SampleRate : int
[Get]
Once setup this should display the number of samples per second expected
Signature
int Meta.Voice.Audio.Decoding.IAudioDecoder.SampleRate

Methods

Decode ( chunkData , chunkStart , chunkLength )
A method for returning decoded bytes into audio data
Signature
float [] Meta.Voice.Audio.Decoding.IAudioDecoder.Decode(byte[] chunkData, int chunkStart, int chunkLength)
Parameters
chunkData: byte []  A chunk of bytes to be decoded into audio data
chunkStart: int  The array start index into account when decoding
chunkLength: int  The total number of bytes to be used within chunkData
Returns
float []  Returns an array of audio data from 0-1
Setup ( channels , sampleRate )
Initial setup of the decoder
Signature
void Meta.Voice.Audio.Decoding.IAudioDecoder.Setup(int channels, int sampleRate)
Parameters
channels: int  Total channels of audio data
sampleRate: int  The total samples per second expected
Returns
void