This project has moved and is read-only. For the latest updates, please go here.

WaveRecorder creates random noise file

Jan 28, 2010 at 3:42 PM

Hello Mark,

I tried using the WaveRecorder as described in your example:,

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 5: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 6:18 PM
Edited Jan 29, 2010 at 5: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 2:29 PM

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