C# Class Wave.WaveReader

RIFF Wave 形式のファイルから音声データを読み出す。
Inheritance: IDisposable
Datei anzeigen Open project: ufcpp/UfcppSample Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Wave ファイルを閉じる。

Dispose ( ) : void
Open ( BinaryReader reader ) : void

Wave ファイルを開く。

Open ( string filename ) : void

Wave ファイルを開く。

Read ( uint length, double &l, double &r ) : int

データの読み出し。

Read ( uint length, float &l, float &r ) : int

データの読み出し。

Skip ( int length ) : bool

データを読み飛ばす。

WaveReader ( ) : System
WaveReader ( BinaryReader reader ) : System
WaveReader ( string filename ) : System

Method Details

Close() public method

Wave ファイルを閉じる。
public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Open() public method

Wave ファイルを開く。
public Open ( BinaryReader reader ) : void
reader System.IO.BinaryReader Wave ファイルを格納したストリーム
return void

Open() public method

Wave ファイルを開く。
public Open ( string filename ) : void
filename string Wave ファイル名
return void

Read() public method

データの読み出し。
public Read ( uint length, double &l, double &r ) : int
length uint 読み出すサンプル数。
l double 左チャネルのデータ格納先。
r double 右チャネルのデータ格納先。
return int

Read() public method

データの読み出し。
public Read ( uint length, float &l, float &r ) : int
length uint 読み出すサンプル数。
l float 左チャネルのデータ格納先。
r float 右チャネルのデータ格納先。
return int

Skip() public method

データを読み飛ばす。
public Skip ( int length ) : bool
length int 読み飛ばす長さ
return bool

WaveReader() public method

public WaveReader ( ) : System
return System

WaveReader() public method

public WaveReader ( BinaryReader reader ) : System
reader System.IO.BinaryReader
return System

WaveReader() public method

public WaveReader ( string filename ) : System
filename string
return System