On 2010-06-15 20:19, Jos? Tom?s Tocino Garc?a wrote: > Hi, I'm using the Pulseaudio Simple Api to get the microphone input. > It works ok, because I can hear exactly what I say on the mic if I > open an output stream, but if I dump the audio stream to a file and > then plot it (using gnuplot for instance), it's got nothing to do with > a waveform. I realized so when I was trying to apply a FFT to the read > stream, I was getting weird results. Have you checked that the sample format is matched? E g if the output from PA is 16 bit signed and gnuplot is expecting floating-point, or perhaps the other way around. // David