ha7ilm / openwebrx

Open source, multi-user SDR receiver software with a web interface
https://sdr.hu/openwebrx
GNU Affero General Public License v3.0
989 stars 476 forks source link

Improve the pre-recorded raw I/Q file as signal source configuration #81

Open f6fvy opened 7 years ago

f6fvy commented 7 years ago

Hi

The current config line for this case assumes the one byte per sample (per channel). To allow 16-bit samples, the start_rtl_command variable becomes:

start_rtl_command="(while true; do cat my_iq_file.raw; done) | csdr flowcontrol {sr} 20 ".format(sr=samp_rate 2 2 1.05)

Note the added "2" (for 2 bytes per sample) in the sr calculation.

Maybe the easiest way would be to add a bytes_per_sample variable ?