C# Класс RhythmCodex.Plugin.CSCore.Lib.Codecs.FLAC.FlacFrame

Represents a frame inside of an Flac-Stream.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
AllocOuputMemory ( ) : List
Decode ( Stream stream, FlacMetadataStreamInfo streamInfo ) : void
FlacFrame ( Stream stream, FlacMetadataStreamInfo streamInfo = null ) : System
FreeBuffers ( ) : void
MapToChannels ( List subFrames ) : void
ReadSubFrames ( ) : void

Описание методов

Dispose() публичный Метод

Disposes the FlacFrame and releases all associated resources.
public Dispose ( ) : void
Результат void

FromStream() публичный статический Метод

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.
Результат FlacFrame

FromStream() публичный статический Метод

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.
Результат FlacFrame

GetBuffer() публичный Метод

Gets the raw pcm data of the flac frame.
public GetBuffer ( Memory &mem ) : int
mem Memory
Результат int

NextFrame() публичный Метод

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
Результат bool