+ struct sr_datafeed_packet packet;
+ struct sr_analog_sample *sample;
+ unsigned int sample_size = sizeof(struct sr_analog_sample) +
+ (NUM_PROBES * sizeof(struct sr_analog_probe));
+ char *outb;
+ char inb[4096];
+ int i, x, count;
+
+ fd = fd;
+ revents = revents;
+
+ do {
+ memset(inb, 0, sizeof(inb));
+ count = snd_pcm_readi(alsa->capture_handle, inb,
+ MIN(4096/4, alsa->limit_samples));
+ if (count < 1) {
+ g_warning("Failed to read samples");
+ return FALSE;
+ }