Andreas Hornig wrote: > > rtl_sdr does nothing with adc values - they are unsigned 8 bit integer. To > > normalize them to -1..+1 range you need to subtract 128 (i.e. got signed > > value) and divide that by 128.0. > > > > (byte - 128) / 128.0 > > > > you can multiply result by 32767, round it and got indeed values which > > sdr# store in their wav file. > > firstly, I need to convert it to wav to be able to work with it,
The samples are bytes in the file. It's a lot easier to operate on a .raw file than to deal with a .wav, if you're just writing a small program yourself. > So it would be good to get the sox command to convert it right. Did you look at the sox man page? Maybe this works: sox -r 2000k -e unsigned -b 8 -c 2 input.raw output.wav But I think you should send a patch to output .wav directly instead. //Peter
