#include <alsa/asoundlib.h>
#include <stdint.h>
-#include <sys/types.h>
-#include <atomic>
#include <chrono>
#include <functional>
#include <memory>
static bool set_base_params(const char *device_name, snd_pcm_t *pcm_handle, snd_pcm_hw_params_t *hw_params, unsigned *sample_rate);
private:
+ bool done_init = false;
void capture_thread_func();
enum class CaptureEndReason {