Start on rtlsdr

This commit is contained in:
Jared Szechy
2021-01-16 18:29:20 -05:00
parent 290a2204ba
commit 502607a608
8 changed files with 1075 additions and 13 deletions

View File

@@ -327,6 +327,13 @@ liveScanner (dsd_opts * opts, dsd_state * state)
return;
}
}
#endif
#ifdef USE_RTLSDR
if(opts->audio_in_type == 3)
{
printf("starting rtl stream\n");
open_rtlsdr_stream();
}
#endif
while (1)
{
@@ -411,6 +418,13 @@ cleanupAndExit (dsd_opts * opts, dsd_state * state)
}
#endif
#ifdef USE_RTLSDR
if(opts->audio_in_type == 3)
{
// TODO: cleanup demod threads
}
#endif
printf("\n");
printf("Total audio errors: %i\n", state->debug_audio_errors);
printf("Total header errors: %i\n", state->debug_header_errors);