Thanks Mark,
I found my full answer in this post : https://naudio.codeplex.com/discussions/251475
but still have some problems! I wrote below code according to discussions # 251475 :
but after applying Wave32To16Stream, I have a sequence of just zeros in stereo16 and so in mono16!!
what should I do in this step?
I found my full answer in this post : https://naudio.codeplex.com/discussions/251475
but still have some problems! I wrote below code according to discussions # 251475 :
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 data in this sequence : 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?