C# Class DSPUtil.WaveWriter

Inheritance: SoundObj
Afficher le fichier Open project: hughpyle/inguz-DSPUtil Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Close the wave file
public Close ( ) : void
Résultat void

SetChannelGain() public méthode

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
Résultat void

WaveWriter() public méthode

public WaveWriter ( ) : System
Résultat System

WaveWriter() public méthode

public WaveWriter ( Stream output ) : System
output Stream
Résultat System

WaveWriter() public méthode

public WaveWriter ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample ) : System
output Stream
numChannels ushort
sampleRate uint
bitsPerSample ushort
Résultat System

WaveWriter() public méthode

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

WaveWriter() public méthode

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
Résultat System

WaveWriter() public méthode

public WaveWriter ( string fileName ) : System
fileName string
Résultat System

WaveWriter() public méthode

public WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample ) : System
fileName string
numChannels ushort
sampleRate uint
bitsPerSample ushort
Résultat System

WaveWriter() public méthode

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

WaveWriter() public méthode

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
Résultat System

WaveWriter() public méthode

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
Résultat System