C# Class DSPUtil.WaveWriter

Inheritance: SoundObj
Mostra file Open project: hughpyle/inguz-DSPUtil Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Close the wave file

SetChannelGain ( ushort channel, double gain ) : void

Set gain for individual channels. This is multiplied by the global Gain if applicable.

WaveWriter ( ) : System
WaveWriter ( Stream output ) : System
WaveWriter ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample ) : System
WaveWriter ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither ) : System
WaveWriter ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format ) : System
WaveWriter ( string fileName ) : System
WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample ) : System
WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither ) : System
WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format ) : System
WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format, bool rewrite ) : System

Private Methods

Method Description
GetFileType ( IntPtr i_Handle ) : int
GetStdHandle ( int i_Handle ) : IntPtr
Initialize ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format ) : void
Initialize ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format, bool rewrite ) : void
MakeDither ( ) : void
WriteWaveHeader ( ) : void
_buff ( ) : ISoundObj
_next ( ISample sample, bool &err ) : ISample

Method Details

Close() public method

Close the wave file
public Close ( ) : void
return void

SetChannelGain() public method

Set gain for individual channels. This is multiplied by the global Gain if applicable.
public SetChannelGain ( ushort channel, double gain ) : void
channel ushort Channel number
gain double Gain (units), or double.NaN to reset
return void

WaveWriter() public method

public WaveWriter ( ) : System
return System

WaveWriter() public method

public WaveWriter ( Stream output ) : System
output Stream
return System

WaveWriter() public method

public WaveWriter ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample ) : System
output Stream
numChannels ushort
sampleRate uint
bitsPerSample ushort
return System

WaveWriter() public method

public WaveWriter ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither ) : System
output Stream
numChannels ushort
sampleRate uint
bitsPerSample ushort
dither DitherType
return System

WaveWriter() public method

public WaveWriter ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format ) : System
output Stream
numChannels ushort
sampleRate uint
bitsPerSample ushort
dither DitherType
format WaveFormat
return System

WaveWriter() public method

public WaveWriter ( string fileName ) : System
fileName string
return System

WaveWriter() public method

public WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample ) : System
fileName string
numChannels ushort
sampleRate uint
bitsPerSample ushort
return System

WaveWriter() public method

public WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither ) : System
fileName string
numChannels ushort
sampleRate uint
bitsPerSample ushort
dither DitherType
return System

WaveWriter() public method

public WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format ) : System
fileName string
numChannels ushort
sampleRate uint
bitsPerSample ushort
dither DitherType
format WaveFormat
return System

WaveWriter() public method

public WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format, bool rewrite ) : System
fileName string
numChannels ushort
sampleRate uint
bitsPerSample ushort
dither DitherType
format WaveFormat
rewrite bool
return System