C# Class Sharpex2D.Audio.WaveStream

Inheritance: Stream, IDisposable
ファイルを表示 Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
Close ( ) : void

Closes the Stream.

Dispose ( ) : void

Disposes the object.

Flush ( ) : void

Flushs the stream.

Read ( byte buffer, int offset, int count ) : int

Reads the stream.

Seek ( long position, SeekOrigin origin ) : long

Seeks the Stream

SetLength ( long length ) : void

Sets the Length.

WaveStream ( Stream stream ) : System

Initializes a new WaveStream class.

WaveStream ( string file ) : System

Initializes a new WaveStream class.

Write ( byte buffer, int offset, int count ) : void

Writes into the stream.

Private Methods

Method Description
ReadChunk ( BinaryReader reader ) : string

Reads a chunk.

ReadHeader ( ) : void

Reads the Header.

Method Details

Close() public method

Closes the Stream.
public Close ( ) : void
return void

Dispose() public method

Disposes the object.
public Dispose ( ) : void
return void

Flush() public method

Flushs the stream.
public Flush ( ) : void
return void

Read() public method

Reads the stream.
public Read ( byte buffer, int offset, int count ) : int
buffer byte The Buffer.
offset int The Offset.
count int The Count.
return int

Seek() public method

Seeks the Stream
public Seek ( long position, SeekOrigin origin ) : long
position long The Position.
origin SeekOrigin The Origin.
return long

SetLength() public method

Sets the Length.
public SetLength ( long length ) : void
length long The Length.
return void

WaveStream() public method

Initializes a new WaveStream class.
public WaveStream ( Stream stream ) : System
stream Stream The BaseStream.
return System

WaveStream() public method

Initializes a new WaveStream class.
public WaveStream ( string file ) : System
file string The File.
return System

Write() public method

Writes into the stream.
public Write ( byte buffer, int offset, int count ) : void
buffer byte The Buffer.
offset int The Offset.
count int The Count.
return void