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

AudioDecoderMp3 Class

An audio decoder for raw MPEG audio data

Fields

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

Properties

Channels : int
[Get]
Once setup this should display the number of channels expected to be decoded
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3.Channels
SampleRate : int
[Get]
Once setup this should display the number of samples per second expected
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3.SampleRate

Methods

Decode ( chunkData , chunkStart , chunkLength )
A method for returning decoded bytes into audio data
Signature
float [] Meta.Voice.Audio.Decoding.AudioDecoderMp3.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.AudioDecoderMp3.Setup(int channels, int sampleRate)
Parameters
channels: int  Total channels of audio data
sampleRate: int  The rate of audio data received
Returns
void