C# Class Wave.WaveWriter

RIFF Wave 形式のファイルに音声データを書き込む。
Inheritance: IDisposable
Show file Open project: ufcpp/UfcppSample Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Wave ファイルを閉じる。

Dispose ( ) : void
Open ( BinaryWriter writer, FormatHeader header ) : void

Wave ファイルを開く。

Open ( string filename, FormatHeader header ) : void

Wave ファイルを開く。

WaveWriter ( ) : System
WaveWriter ( BinaryWriter writer, FormatHeader header ) : System
WaveWriter ( string filename, FormatHeader header ) : System
Write ( double l, double r ) : int

データの書き込み。

Write ( float l, float r ) : int

データの書き込み。

Private Methods

Method Description
DoubleToByte ( double x ) : byte

double → byte の変換。

DoubleToShort ( double x ) : short

double → short の変換。

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 ( BinaryWriter writer, FormatHeader header ) : void
writer System.IO.BinaryWriter
header FormatHeader
return void

Open() public method

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

WaveWriter() public method

public WaveWriter ( ) : System
return System

WaveWriter() public method

public WaveWriter ( BinaryWriter writer, FormatHeader header ) : System
writer System.IO.BinaryWriter
header FormatHeader
return System

WaveWriter() public method

public WaveWriter ( string filename, FormatHeader header ) : System
filename string
header FormatHeader
return System

Write() public method

データの書き込み。
public Write ( double l, double r ) : int
l double 左チャネルのデータ。
r double 右チャネルのデータ。
return int

Write() public method

データの書き込み。
public Write ( float l, float r ) : int
l float 左チャネルのデータ。
r float 右チャネルのデータ。
return int