C# Класс DSPUtil.WaveWriter

Наследование: SoundObj
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Close() публичный Метод

Close the wave file
public Close ( ) : void
Результат void

SetChannelGain() публичный Метод

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
Результат void

WaveWriter() публичный Метод

public WaveWriter ( ) : System
Результат System

WaveWriter() публичный Метод

public WaveWriter ( Stream output ) : System
output Stream
Результат System

WaveWriter() публичный Метод

public WaveWriter ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample ) : System
output Stream
numChannels ushort
sampleRate uint
bitsPerSample ushort
Результат System

WaveWriter() публичный Метод

public WaveWriter ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither ) : System
output Stream
numChannels ushort
sampleRate uint
bitsPerSample ushort
dither DitherType
Результат System

WaveWriter() публичный Метод

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
Результат System

WaveWriter() публичный Метод

public WaveWriter ( string fileName ) : System
fileName string
Результат System

WaveWriter() публичный Метод

public WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample ) : System
fileName string
numChannels ushort
sampleRate uint
bitsPerSample ushort
Результат System

WaveWriter() публичный Метод

public WaveWriter ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither ) : System
fileName string
numChannels ushort
sampleRate uint
bitsPerSample ushort
dither DitherType
Результат System

WaveWriter() публичный Метод

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
Результат System

WaveWriter() публичный Метод

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
Результат System