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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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()andaudio32.WaveFormat.ToString()and you will see what is different.