C# Class FlacLibSharp.FlacFile

Parses FLAC data from the given stream of file.
Only metadata parsing is currently implemented, decoding frames is THE big TODO.
Inheritance: IDisposable
Exibir arquivo Open project: AaronLenoir/flaclibsharp Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
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.

Private Methods

Method Description
VerifyFlacIdentity ( ) : void

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

Method Details

Dispose() public method

Releases the loaded flac file.
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FlacFile() public method

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
return System

FlacFile() public method

Open a Flac File
public FlacFile ( string path ) : System
path string Path to the file.
return System

GetAllApplicationInfo() public method

Returns all ApplicationInfo metadata blocks (if there are any) of the loaded Flac file.
public GetAllApplicationInfo ( ) : IEnumerable
return IEnumerable

GetAllCueSheets() public method

Returns all CueSheet metadata blocks (if there are any) of the loaded Flac file.
public GetAllCueSheets ( ) : IEnumerable
return IEnumerable

GetAllPadding() public method

Returns all Padding metadata blocks (if there are any) of the loaded Flac file.
public GetAllPadding ( ) : IEnumerable
return IEnumerable

GetAllPictures() public method

Will return all Picture blocks available in the Flac file, or an empty list of none are found.
public GetAllPictures ( ) : List
return List

Initialize() protected method

Verifies the flac identity and tries to load the available metadata blocks.
protected Initialize ( ) : void
return void

ReadMetadata() protected method

Tries to parse all the metadata blocks available in the file.
protected ReadMetadata ( ) : void
return void

Save() public method

public Save ( ) : void
return void