API reference
API reference
Select your platform
No SDKs available
No versions available

IAudioDecoder Interface

An interface for handling audio decoding

Overview

Properties

int
Once setup this should display the number of channels expected to be decoded
int
Once setup this should display the number of samples per second expected
bool
A property for whether the decoder can decode chunks on separate threads simultaneously or if they need to be performed sequentially.

Public Member Functions

void
Setup
( int channels,
int sampleRate )
Initial setup of the decoder
float []
Decode
( byte [] chunkData,
int chunkStart,
int chunkLength )
A method for returning decoded bytes into audio data

Details

Properties

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

Member Functions

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