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

AudioDecoderMp3 Class

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

Overview

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
int
GetTotalSamples
( ulong contentLength )
Mp3 sample count cannot be determined from content length, return -1
float []
Decode
( byte [] chunkData,
int chunkStart,
int chunkLength )
A method for returning decoded bytes into audio data

Details

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
int Meta.Voice.Audio.Decoding.AudioDecoderMp3.GetTotalSamples
( ulong contentLength )
Mp3 sample count cannot be determined from content length, return -1
Parameters
contentLength
The provided number of bytes
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
Did you find this page helpful?
Thumbs up icon
Thumbs down icon