API reference

IMpegFrame Interface

Defines a standard way of representing a MPEG frame to the decoder

Properties

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

Methods

ReadBits ( bitCount )
Provides sequential access to the bitstream in the frame (after the header and optional CRC)
Signature
int Meta.Voice.NLayer.IMpegFrame.ReadBits(int bitCount)
Parameters
bitCount: int  The number of bits to read
Returns
int  -1 if the end of the frame has been encountered, otherwise the bits requested
Reset ()
Resets the bit reader so frames can be reused
Signature
void Meta.Voice.NLayer.IMpegFrame.Reset()
Returns
void