C# Class GSF.Media.WaveDataChunk

Represents the data chunk in a WAVE media format file.
Inheritance: RiffChunk, ISupportBinaryImage
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Méthodes publiques

Méthode Description
Clone ( ) : WaveDataChunk

Creates a deeply cloned copy of the WaveDataChunk.

GenerateBinaryImage ( byte buffer, int startIndex ) : int

Generates a binary representation of this WaveDataChunk and copies it into the given buffer.

WaveDataChunk ( RiffChunk preRead, Stream source, WaveFormatChunk waveFormat ) : System

Reads a new WAVE format section from the specified stream.

WaveDataChunk ( WaveFormatChunk waveFormat ) : System

Constructs a new WAVE data chunk for the specified format.

Private Methods

Méthode Description
ISupportBinaryImage ( byte buffer, int startIndex, int length ) : int

Method Details

Clone() public méthode

Creates a deeply cloned copy of the WaveDataChunk.
public Clone ( ) : WaveDataChunk
Résultat WaveDataChunk

GenerateBinaryImage() public méthode

Generates a binary representation of this WaveDataChunk and copies it into the given buffer.
is null. /// or is less than 0 -or- /// and will exceed length. ///
public GenerateBinaryImage ( byte buffer, int startIndex ) : int
buffer byte Buffer used to hold generated binary image of the source object.
startIndex int 0-based starting index in the to start writing.
Résultat int

WaveDataChunk() public méthode

Reads a new WAVE format section from the specified stream.
WAVE format or extra parameters section too small, wave file corrupted.
public WaveDataChunk ( RiffChunk preRead, Stream source, WaveFormatChunk waveFormat ) : System
preRead RiffChunk Pre-parsed header.
source Stream Source stream to read data from.
waveFormat WaveFormatChunk Format of the data section to be parsed.
Résultat System

WaveDataChunk() public méthode

Constructs a new WAVE data chunk for the specified format.
public WaveDataChunk ( WaveFormatChunk waveFormat ) : System
waveFormat WaveFormatChunk that describes this .
Résultat System