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
Afficher le fichier Open project: AaronLenoir/flaclibsharp Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
VerifyFlacIdentity ( ) : void

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

Method Details

Dispose() public méthode

Releases the loaded flac file.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FlacFile() public méthode

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
Résultat System

FlacFile() public méthode

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

GetAllApplicationInfo() public méthode

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

GetAllCueSheets() public méthode

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

GetAllPadding() public méthode

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

GetAllPictures() public méthode

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

Initialize() protected méthode

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

ReadMetadata() protected méthode

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

Save() public méthode

public Save ( ) : void
Résultat void