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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user