WaveRecorder creates random noise file

Jan 28, 2010 at 2:42 PM

Hello Mark,

I tried using the WaveRecorder as described in your example:   http://mark-dot-net.blogspot.com/2009/10/recording-soundcard-output-to-wav-in.html,

but instead of using a sineWaveProvider I used a WaveMixerstream32. Now when I listen to the recorded file, there's only "random" noise....Could you imagine whats the problem ?


Thanks, Sahel



Jan 28, 2010 at 4:02 PM

you need to make sure you have set the WaveFormat correctly, or you will get random noise. Also, what are the inputs to your wavemixerstream32?


Jan 28, 2010 at 5:18 PM
Edited Jan 29, 2010 at 4:48 PM

the input stream is WaveChannel32;  the WaveFileWriter inside the constructor of WaveRecorder is created with WaveFormat 32Bit IeeeFloat, because thats the inputStream's format ( the original source is 16 Bit Mono 44.1 Khz, but as I'm using WaveChannel32 I cannot control the waveformat....)

So, how/where would I have to set the WaveFormat ?



Mar 11, 2010 at 1:29 PM

can you post a code snippet. I am not sure exactly what you are trying to do.