C# Class RhythmCodex.Plugin.CSCore.Lib.Codecs.FLAC.FlacFrame

Represents a frame inside of an Flac-Stream.
Inheritance: IDisposable
Mostrar archivo Open project: SaxxonPike/RhythmCodex Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes the FlacFrame and releases all associated resources.

FromStream ( Stream stream ) : FlacFrame

Creates a new instance of the FlacFrame class based on the specified stream.

FromStream ( Stream stream, FlacMetadataStreamInfo streamInfo ) : FlacFrame

Creates a new instance of the FlacFrame class based on the specified stream and some basic stream information.

GetBuffer ( Memory &mem ) : int

Gets the raw pcm data of the flac frame.

NextFrame ( ) : bool

Tries to read the next flac frame inside of the specified stream and returns a value which indicates whether the next flac frame could be successfully read.

Private Methods

Method Description
AllocOuputMemory ( ) : List
Decode ( Stream stream, FlacMetadataStreamInfo streamInfo ) : void
FlacFrame ( Stream stream, FlacMetadataStreamInfo streamInfo = null ) : System
FreeBuffers ( ) : void
MapToChannels ( List subFrames ) : void
ReadSubFrames ( ) : void

Method Details

Dispose() public method

Disposes the FlacFrame and releases all associated resources.
public Dispose ( ) : void
return void

FromStream() public static method

Creates a new instance of the FlacFrame class based on the specified stream.
public static FromStream ( Stream stream ) : FlacFrame
stream Stream The stream which contains the flac frame.
return FlacFrame

FromStream() public static method

Creates a new instance of the FlacFrame class based on the specified stream and some basic stream information.
public static FromStream ( Stream stream, FlacMetadataStreamInfo streamInfo ) : FlacFrame
stream Stream The stream which contains the flac frame.
streamInfo FlacMetadataStreamInfo Some basic information about the flac stream.
return FlacFrame

GetBuffer() public method

Gets the raw pcm data of the flac frame.
public GetBuffer ( Memory &mem ) : int
mem Memory
return int

NextFrame() public method

Tries to read the next flac frame inside of the specified stream and returns a value which indicates whether the next flac frame could be successfully read.
public NextFrame ( ) : bool
return bool