typedef struct pollfd PollType;
/// Poll file descriptors for available I/O.
+ static int poll(PollType * array, int length, int timeout);
+
+ /// Get the file descriptors to be used to poll for available I/O.
virtual int poll_fds(PollType * array, int space) = 0;
virtual ~IODevice() = 0;
#include <iostream>
#include <sstream>
#include <stdexcept>
-#include <unistd.h>
#include <string.h>
-#include <sys/time.h>
/// FIX:
///
void
Run::receive()
{
- struct timespec start_time;
- clock_gettime(CLOCK_MONOTONIC, &start_time);
-
// Drain any data that the loudspeaker can take.
const std::size_t out_samples = min(
i->loudspeaker->ready(),