ka9q / ka9q-radio

Multichannel SDR based on fast convolution and IP multicasting
GNU General Public License v3.0
180 stars 42 forks source link

Byteswap default in pcmcat changed #66

Open argilo opened 5 days ago

argilo commented 5 days ago

After a recent change to pcmcat (made in 5e606d5f9dd0fd9f3881f1f736d6bf7f0d6434b5), Auto-RX stopped working. It looks like the reason is that pcmcat previously defaulted to byteswapping, but now only does so when the stream type is 10 or 11 (44100 sps, S16BE). Auto-RX uses type 113 (48000 sps, S16BE) and a number of other non-standard sample rates for which stream types are dynamically allocated.

Adding the -b 1 argument works around the problem, but I'm not sure whether it was intentional to change the default behaviour for stream type 113 (and other S16BE stream types, including dynamically allocated ones).

argilo commented 4 days ago

I have proposed to explicitly request byteswapping in Auto-RX with the -b 1 argument: https://github.com/projecthorus/radiosonde_auto_rx/pull/947