Exemple #1
0
static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
{
	underrun_test(buf, len, 0);
#ifndef _WIN32
	if (test_mode == PPM_BENCHMARK)
		ppm_test(len);
#endif
}
Exemple #2
0
static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
{
	underrun_test(buf, len, 0);

	if (ppm_benchmark && !ppm_running) {
		ppm_clock_init();
		ppm_running = 1;
		return;
	}

	if (ppm_benchmark) {
		ppm_test(len);
	}
}