C# Класс FlacLibSharp.FlacFile

Parses FLAC data from the given stream of file.
Only metadata parsing is currently implemented, decoding frames is THE big TODO.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

Releases the loaded flac file.

FlacFile ( Stream data ) : System

Open a flac file from a stream of data

Stream is assumed to be at the beginning of the FLAC data

FlacFile ( string path ) : System

Open a Flac File

GetAllApplicationInfo ( ) : IEnumerable

Returns all ApplicationInfo metadata blocks (if there are any) of the loaded Flac file.

GetAllCueSheets ( ) : IEnumerable

Returns all CueSheet metadata blocks (if there are any) of the loaded Flac file.

GetAllPadding ( ) : IEnumerable

Returns all Padding metadata blocks (if there are any) of the loaded Flac file.

GetAllPictures ( ) : List

Will return all Picture blocks available in the Flac file, or an empty list of none are found.

Save ( ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
Initialize ( ) : void

Verifies the flac identity and tries to load the available metadata blocks.

ReadMetadata ( ) : void

Tries to parse all the metadata blocks available in the file.

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

Метод Описание
VerifyFlacIdentity ( ) : void

Verifies whether or not the first four bytes of the file indicate this is a flac file.

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

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

Releases the loaded flac file.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Open a flac file from a stream of data
Stream is assumed to be at the beginning of the FLAC data
public FlacFile ( Stream data ) : System
data Stream Any stream of data
Результат System

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

Open a Flac File
public FlacFile ( string path ) : System
path string Path to the file.
Результат System

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

Returns all ApplicationInfo metadata blocks (if there are any) of the loaded Flac file.
public GetAllApplicationInfo ( ) : IEnumerable
Результат IEnumerable

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

Returns all CueSheet metadata blocks (if there are any) of the loaded Flac file.
public GetAllCueSheets ( ) : IEnumerable
Результат IEnumerable

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

Returns all Padding metadata blocks (if there are any) of the loaded Flac file.
public GetAllPadding ( ) : IEnumerable
Результат IEnumerable

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

Will return all Picture blocks available in the Flac file, or an empty list of none are found.
public GetAllPictures ( ) : List
Результат List

Initialize() защищенный Метод

Verifies the flac identity and tries to load the available metadata blocks.
protected Initialize ( ) : void
Результат void

ReadMetadata() защищенный Метод

Tries to parse all the metadata blocks available in the file.
protected ReadMetadata ( ) : void
Результат void

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

public Save ( ) : void
Результат void