C# Class SoundLibrary.Wave.Util

SoundLibrary.Wave 内で使うユーティリティ関数の定義。
ファイルを表示 Open project: ufcpp/UfcppSample

Public Properties

Property Type Description
DATA byte[]
FMT byte[]
RIFF byte[]
WAVE byte[]

Public Methods

Method Description
Equal ( byte a, byte b ) : bool
FilteringRawData ( byte data, Monaural1SampleFilter filter, bool is16bit ) : void

Raw Wav Data に対してフィルタリングする。 モノラル版。

FilteringRawData ( byte data, Stereo1SampleFilter filter, bool is16bit ) : void

Raw Wav Data に対してフィルタリングする。 ステレオ版。

MemCopy ( byte orig, byte dest ) : void
MemCopy ( byte orig, int origOffset, byte dest, int destOffset, int length ) : void
MemCopy ( byte orig, int origOffset, short dest, int destOffset, int length ) : void
MemCopy ( byte orig, short dest ) : void
MemCopy ( byte orig, short dest, int length ) : void
MemCopy ( short orig, byte dest ) : void
MemCopy ( short orig, byte dest, int length ) : void
MemCopy ( short orig, int origOffset, byte dest, int destOffset, int length ) : void
MemCopy ( short orig, int origOffset, short dest, int destOffset, int length ) : void
MemCopy ( void orig, void dest, int length ) : void

Private Methods

Method Description
BiasedByteToShort ( byte x ) : short

wave 格納形式(128バイアス表現)→ short

ClipToByte ( double x ) : byte

→ byte の変換。

ClipToByte ( float x ) : byte

→ byte の変換。

ClipToByte ( short x ) : byte

→ byte の変換。

ClipToShort ( double x ) : short

→ short の変換。

ClipToShort ( float x ) : short

→ short の変換。

ClipToShort ( short x ) : short

→ short の変換。

Method Details

Equal() public static method

public static Equal ( byte a, byte b ) : bool
a byte
b byte
return bool

FilteringRawData() public static method

Raw Wav Data に対してフィルタリングする。 モノラル版。
public static FilteringRawData ( byte data, Monaural1SampleFilter filter, bool is16bit ) : void
data byte Raw Data
filter Monaural1SampleFilter フィルタ
is16bit bool Raw Data の形式が16ビットか8ビットか。
return void

FilteringRawData() public static method

Raw Wav Data に対してフィルタリングする。 ステレオ版。
public static FilteringRawData ( byte data, Stereo1SampleFilter filter, bool is16bit ) : void
data byte Raw Data
filter Stereo1SampleFilter フィルタ
is16bit bool Raw Data の形式が16ビットか8ビットか。
return void

MemCopy() public static method

public static MemCopy ( byte orig, byte dest ) : void
orig byte
dest byte
return void

MemCopy() public static method

public static MemCopy ( byte orig, int origOffset, byte dest, int destOffset, int length ) : void
orig byte
origOffset int
dest byte
destOffset int
length int
return void

MemCopy() public static method

public static MemCopy ( byte orig, int origOffset, short dest, int destOffset, int length ) : void
orig byte
origOffset int
dest short
destOffset int
length int
return void

MemCopy() public static method

public static MemCopy ( byte orig, short dest ) : void
orig byte
dest short
return void

MemCopy() public static method

public static MemCopy ( byte orig, short dest, int length ) : void
orig byte
dest short
length int
return void

MemCopy() public static method

public static MemCopy ( short orig, byte dest ) : void
orig short
dest byte
return void

MemCopy() public static method

public static MemCopy ( short orig, byte dest, int length ) : void
orig short
dest byte
length int
return void

MemCopy() public static method

public static MemCopy ( short orig, int origOffset, byte dest, int destOffset, int length ) : void
orig short
origOffset int
dest byte
destOffset int
length int
return void

MemCopy() public static method

public static MemCopy ( short orig, int origOffset, short dest, int destOffset, int length ) : void
orig short
origOffset int
dest short
destOffset int
length int
return void

MemCopy() public static method

public static MemCopy ( void orig, void dest, int length ) : void
orig void
dest void
length int
return void

Property Details

DATA public_oe static_oe property

public static byte[] DATA
return byte[]

FMT public_oe static_oe property

public static byte[] FMT
return byte[]

RIFF public_oe static_oe property

public static byte[] RIFF
return byte[]

WAVE public_oe static_oe property

public static byte[] WAVE
return byte[]