Crosstales.NLayer.Decoder.MpegFrame Class Reference
Inheritance diagram for Crosstales.NLayer.Decoder.MpegFrame:
Crosstales.NLayer.Decoder.FrameBase Crosstales.NLayer.IMpegFrame

Public Member Functions

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

Protected Member Functions

override int Validate ()
 Called to validate the frame header More...
 
- Protected Member Functions inherited from Crosstales.NLayer.Decoder.FrameBase
int Read (int offset, byte[] buffer)
 
int Read (int offset, byte[] buffer, int index, int count)
 
int ReadByte (int offset)
 

Properties

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

Member Function Documentation

◆ ReadBits()

int Crosstales.NLayer.Decoder.MpegFrame.ReadBits ( int  bitCount)

Provides sequential access to the bitstream in the frame (after the header and optional CRC)

Parameters
bitCountThe number of bits to read
Returns
-1 if the end of the frame has been encountered, otherwise the bits requested

Implements Crosstales.NLayer.IMpegFrame.

◆ Reset()

void Crosstales.NLayer.Decoder.MpegFrame.Reset ( )

Resets the bit reader so frames can be reused

Implements Crosstales.NLayer.IMpegFrame.

◆ Validate()

override int Crosstales.NLayer.Decoder.MpegFrame.Validate ( )
protectedvirtual

Called to validate the frame header

Returns
The length of the frame, or -1 if frame is invalid

Implements Crosstales.NLayer.Decoder.FrameBase.


The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/DJPro/DJPro/Assets/Plugins/crosstales/Common/Libraries/NLayer/Decoder/MpegFrame.cs