All incoming channels must have the same format Parameter name: inputStreams.WaveFormat

Go To StackoverFlow.com

0

I use NAudio. Before everything was good. But yesterday there was an error:

All incoming channels must have the same format Parameter name: inputStreams.WaveFormat

mixer.AddInputStream(audio32);

I can't find a cause of error!

2012-04-04 02:33
by D E


0

All inputs to the mixer must be of the same format. This means same sample rate, same bit depth and same number of channels (can't mix mono and stereo). Compare mixer.WaveFormat.ToString() and audio32.WaveFormat.ToString() and you will see what is different.

2012-04-05 08:37
by Mark Heath