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

AudioDecoderMp3Frame Class

An audio decoder for raw MPEG audio data

Properties

BitRate : int
[Get]
Bit Rate
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.BitRate
BitRateIndex : int
[Get]
The bitrate index (directly from the header)
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.BitRateIndex
ChannelMode : MpegChannelMode
[Get]
Channel Mode
Signature
MpegChannelMode Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.ChannelMode
ChannelModeExtension : int
[Get]
The channel extension bits
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.ChannelModeExtension
FrameLength : int
[Get]
Frame length in bytes
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.FrameLength
HasCrc : bool
[Get]
Whether a CRC is present
Signature
bool Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.HasCrc
IsCopyrighted : bool
[Get]
Whether the copyright bit is set
Signature
bool Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.IsCopyrighted
IsCorrupted : bool
[Get]
Whether the CRC check failed (use error concealment strategy)
Signature
bool Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.IsCorrupted
Layer : MpegLayer
[Get]
MPEG Layer
Signature
MpegLayer Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.Layer
SampleCount : int
[Get]
The number of samples in this frame
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.SampleCount
SampleRate : int
[Get]
Sample rate of this frame
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.SampleRate
SampleRateIndex : int
[Get]
The samplerate index (directly from the header)
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.SampleRateIndex
Version : MpegVersion
[Get]
Mpeg version enum
Signature
MpegVersion Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.Version

Methods

Decode ( chunkData , start , length )
Decodes the frame & returns the number of leftover
Signature
float [] Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.Decode(byte[] chunkData, ref int start, int length)
Parameters
chunkData: byte []  A chunk of bytes received from a web service
start: ref int  The location to begin decoding chunkData
length: int  The total number of bytes to be used within chunkData
Returns
float []  Returns an array of audio data from 0-1
ReadBits ( bitCount )
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.ReadBits(int bitCount)
Parameters
bitCount: int
Returns
int
Reset ()
Resets all read data
Signature
void Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.Reset()
Returns
void
ToString ()
Signature
override string Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.ToString()
Returns
override string

Internal Methods

GetSideDataSize ()
Signature
int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.GetSideDataSize()
Returns
int

Internal Static Methods

BitRShift ( number , bits )
Signature
static int Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.BitRShift(int number, int bits)
Parameters
number: int
bits: int
Returns
int
GetBitString ( headerData )
Signature
static string Meta.Voice.Audio.Decoding.AudioDecoderMp3Frame.GetBitString(int headerData)
Parameters
headerData: int
Returns
string