Quick hacks to get it working with rtlsdr-on-soapy
This commit is contained in:
parent
8001832de2
commit
e2494c2159
|
|
@ -131,7 +131,7 @@ bool soapyOpen(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SOAPY.converter = init_converter(INPUT_SC16Q11,
|
SOAPY.converter = init_converter(INPUT_SC16,
|
||||||
Modes.sample_rate,
|
Modes.sample_rate,
|
||||||
Modes.dc_filter,
|
Modes.dc_filter,
|
||||||
&SOAPY.converter_state);
|
&SOAPY.converter_state);
|
||||||
|
|
@ -169,7 +169,7 @@ void soapyRun()
|
||||||
while (!Modes.exit) {
|
while (!Modes.exit) {
|
||||||
int flags;
|
int flags;
|
||||||
long long timeNs;
|
long long timeNs;
|
||||||
int sample_count = SoapySDRDevice_readStream(SOAPY.dev, SOAPY.stream, buffers, buffer_elements, &flags, &timeNs, 50000);
|
int sample_count = SoapySDRDevice_readStream(SOAPY.dev, SOAPY.stream, buffers, buffer_elements, &flags, &timeNs, 5000000);
|
||||||
if (sample_count <= 0) {
|
if (sample_count <= 0) {
|
||||||
fprintf(stderr, "soapy: readStream failed: %s\n", SoapySDRDevice_lastError());
|
fprintf(stderr, "soapy: readStream failed: %s\n", SoapySDRDevice_lastError());
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue