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

IMpegFrame Interface

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

Overview

Properties

int
Sample rate of this frame
int
The samplerate index (directly from the header)
int
Frame length in bytes
int
BitRate[Get]
Bit Rate
Version[Get]
MPEG Version
Layer[Get]
MPEG Layer
Channel Mode
int
The number of samples in this frame
int
The channel extension bits
int
The bitrate index (directly from the header)
bool
Whether the Copyright bit is set
bool
HasCrc[Get]
Whether a CRC is present
bool
Whether the CRC check failed (use error concealment strategy)

Public Member Functions

void
Reset ( )
Resets the bit reader so frames can be reused
int
ReadBits
( int bitCount )
Provides sequential access to the bitstream in the frame (after the header and optional CRC)

Details

Properties

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

Member Functions

void Meta.Audio.NLayer.IMpegFrame.Reset ( )
Resets the bit reader so frames can be reused
int Meta.Audio.NLayer.IMpegFrame.ReadBits
( int bitCount )
Provides sequential access to the bitstream in the frame (after the header and optional CRC)
Parameters
bitCount
The number of bits to read
Returns
-1 if the end of the frame has been encountered, otherwise the bits requested
Did you find this page helpful?
Thumbs up icon
Thumbs down icon