C# Class Wave.FormatHeader

Wave ファイルのフォーマットヘッダ。
Exibir arquivo Open project: ufcpp/UfcppSample Class Usage Examples

Public Properties

Property Type Description
blockSize short
ch short
dataRate int
id short
sampleBit short
sampleRate int

Public Methods

Method Description
FormatHeader ( ) : System
FormatHeader ( BinaryReader reader ) : System

BinaryReader からヘッダ読み出し。

FormatHeader ( int rate, bool stereo, bool type ) : System

サンプリングレート等のパラメータからヘッダ作成。

ReadFromStream ( BinaryReader reader ) : void

BinaryReader からヘッダ読み出し。

WriteToStream ( BinaryWriter writer ) : void

Method Details

FormatHeader() public method

public FormatHeader ( ) : System
return System

FormatHeader() public method

BinaryReader からヘッダ読み出し。
public FormatHeader ( BinaryReader reader ) : System
reader System.IO.BinaryReader
return System

FormatHeader() public method

サンプリングレート等のパラメータからヘッダ作成。
public FormatHeader ( int rate, bool stereo, bool type ) : System
rate int サンプリングレート
stereo bool true ならステレオ、false ならモノラル
type bool true なら16bit/sample、false なら8bit/sample
return System

ReadFromStream() public method

BinaryReader からヘッダ読み出し。
public ReadFromStream ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

WriteToStream() public method

public WriteToStream ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

Property Details

blockSize public_oe property

public short blockSize
return short

ch public_oe property

public short ch
return short

dataRate public_oe property

public int dataRate
return int

id public_oe property

public short id
return short

sampleBit public_oe property

public short sampleBit
return short

sampleRate public_oe property

public int sampleRate
return int