diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2021-12-05 12:46:19 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2021-12-12 10:53:26 +0100 |
commit | 2d23c841a6f092f859db434e7e5a2d62a3fc6b64 (patch) | |
tree | 12d3e8158b96ef5dd3148e6a5942ddddf8ca9902 /src/radio | |
parent | 726453909c23133da0921ca010e6fd5be1f36fc4 (diff) |
Cleanup SDR usage when no channel, but full spectrum is used.
Radio and TV uses full spectrum, so they set channels to 0, this will
define a center frequency only. The spectrum is then processed by the
applications and not by libsdr.
The sample rate must be a factor of 1e9, so that time stamps work
and signal has no gaps/glitchs.
Diffstat (limited to 'src/radio')
-rw-r--r-- | src/radio/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radio/main.c b/src/radio/main.c index b45d106..b58108f 100644 --- a/src/radio/main.c +++ b/src/radio/main.c @@ -393,7 +393,7 @@ int main(int argc, char *argv[]) tx_frequencies[0] = frequency; rx_frequencies[0] = frequency; am[0] = 0; - sdr = sdr_open(NULL, tx_frequencies, rx_frequencies, am, 1, 0.0, dsp_samplerate, buffer_size, 1.0, 0.0, 0.0, 0.0); + sdr = sdr_open(NULL, tx_frequencies, rx_frequencies, am, 0, 0.0, dsp_samplerate, buffer_size, 1.0, 0.0, 0.0, 0.0); if (!sdr) goto error; sdr_start(sdr); |