DSPUtil.WaveWriter.Initialize C# (CSharp) Method

Initialize() private method

private Initialize ( Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format ) : void
output Stream
numChannels ushort
sampleRate uint
bitsPerSample ushort
dither DitherType
format WaveFormat
return void
        private void Initialize(Stream output, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format)
        {
            NumChannels = numChannels;
            SampleRate = sampleRate;
            BitsPerSample = bitsPerSample;
            _audioFormat = format;
            _dither = dither;
            _sampleCount = 0;
            _doneHeader = false;

            _fs = null;
            _bs = new BufferedStream(output);
            _w = new BinaryWriter(_bs);
        }

Same methods

WaveWriter::Initialize ( string fileName, ushort numChannels, uint sampleRate, ushort bitsPerSample, DitherType dither, WaveFormat format, bool rewrite ) : void