C# 클래스 GSF.Media.WaveDataChunk

Represents the data chunk in a WAVE media format file.
상속: RiffChunk, ISupportBinaryImage
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
ISupportBinaryImage ( byte buffer, int startIndex, int length ) : int

메소드 상세

Clone() 공개 메소드

Creates a deeply cloned copy of the WaveDataChunk.
public Clone ( ) : WaveDataChunk
리턴 WaveDataChunk

GenerateBinaryImage() 공개 메소드

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.
리턴 int

WaveDataChunk() 공개 메소드

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.
리턴 System

WaveDataChunk() 공개 메소드

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