I've been using NAudio for the past few day mixing two wave files with this format :
SampleRate: 8000 BitsPerSample: 8 Channels: 1 Block Align Channels: 1 Bits per Second: 8000
as I found from https://naudio.codeplex.com/discussions/251475 , first I should convert them into a 32 bit ieeefloatingpoint encoding and then add converted streams to WaveMixerStream32. after that I should convert mixed data to 16bit/sample stream using Wave32To16Stream, convert obtained stream to mono and finally convert mono 16bit/sample to mono 8bit/sample.
I wrote these lines of code according to what I explain :
WaveFileReader r1 = new WaveFileReader(...);
WaveFileReader r2 = new WaveFileReader(...);
WaveFormat OutputWaveFormat = WaveFormat.CreateCustomFormat(WaveFormatEncoding.Pcm, 8000, 1, 16000, 2, 16);
WaveFormat InputWaveFormat = WaveFormat.CreateALawFormat(8000, 1);
WaveFormatConversionStream ConversionStream1 = new WaveFormatConversionStream(OutputWaveFormat, r1);
WaveFormatConversionStream ConversionStream2 = new WaveFormatConversionStream(OutputWaveFormat, r2);
WaveChannel32 WaveChannel32_1 = new WaveChannel32(ConversionStream1);
WaveChannel32 WaveChannel32_2 = new WaveChannel32(ConversionStream2);
WaveMixerStream32 mixer32 = new WaveMixerStream32();
mixer32.AddInputStream(WaveChannel32_1);
mixer32.AddInputStream(WaveChannel32_2);//(*)
Wave32To16Stream stereo16 = new Wave32To16Stream(mixer32);
StereoToMonoProvider16 mono16 = new StereoToMonoProvider16(m_Wave32To16Stream);
after line (*) I have a stream such : 0 0 32 60 0 0 32 60 0 0 59 126 0 0 59 126 ... but after applying Wave32To16Stream, I have a sequence of just zeros in stereo16 and so in mono16!! what should I do in this step?