API reference

AudioDecoderMp3 Class

An audio decoder for raw MPEG audio data
Meta::Voice::Audio::Decoding::AudioDecoderMp3 extends Meta.Voice.Audio.Decoding.IAudioDecoder.

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

Data Fields

bool
Mp3 must be decoded sequentially in since frame data could be carried over to the next chunk

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.AudioDecoderMp3.Channels
Once setup this should display the number of channels expected to be decoded
int Meta.Voice.Audio.Decoding.AudioDecoderMp3.SampleRate
Once setup this should display the number of samples per second expected

Fields

bool Meta.Voice.Audio.Decoding.AudioDecoderMp3.RequireSequentialDecode
Mp3 must be decoded sequentially in since frame data could be carried over to the next chunk

Member Functions

void Meta.Voice.Audio.Decoding.AudioDecoderMp3.Setup
( int channels,
int sampleRate )
Initial setup of the decoder
Parameters
channels
Total channels of audio data
sampleRate
The rate of audio data received
float [] Meta.Voice.Audio.Decoding.AudioDecoderMp3.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