C# Class GAudio.GATWavHelper

Convenience helper methods and constants for reading and writing wav files.
显示文件 Open project: gregzo/G-Audio Class Usage Examples

Public Properties

Property Type Description
dataBytes byte[]
floatToInt16RescaleFactor int
fmtBytes byte[]
headerSize int
riffBytes byte[]
waveBytes byte[]

Public Methods

Method Description
GetHeader ( int numChannels, int sampleRate, int numBytes ) : byte[]

Returns the header for a 16 bit uncompressed wav file.

IsEqualTo ( this bytes, byte comparand ) : bool

Compare byte arrays ( extension method )

Method Details

GetHeader() public static method

Returns the header for a 16 bit uncompressed wav file.
public static GetHeader ( int numChannels, int sampleRate, int numBytes ) : byte[]
numChannels int
sampleRate int
numBytes int
return byte[]

IsEqualTo() public static method

Compare byte arrays ( extension method )
public static IsEqualTo ( this bytes, byte comparand ) : bool
bytes this
comparand byte
return bool

Property Details

dataBytes public_oe static_oe property

public static byte[] dataBytes
return byte[]

floatToInt16RescaleFactor public_oe static_oe property

Multiplier for converting float32 to int16
public static int floatToInt16RescaleFactor
return int

fmtBytes public_oe static_oe property

public static byte[] fmtBytes
return byte[]

headerSize public_oe static_oe property

The size of the header, in bytes.
public static int headerSize
return int

riffBytes public_oe static_oe property

public static byte[] riffBytes
return byte[]

waveBytes public_oe static_oe property

public static byte[] waveBytes
return byte[]