]> git.sesse.net Git - nageru/blobdiff - alsa_pool.h
Fix an issue where the mixer lagging too much behind CEF would cause us to display...
[nageru] / alsa_pool.h
index c9cd61abda1e8ecbbbaa575bf6021b5ecae141bd..904e2ecf971f9850744b5e5a723e00aae073c399 100644 (file)
@@ -1,19 +1,14 @@
 #ifndef _ALSA_POOL_H
 #define _ALSA_POOL_H 1
 
-#include <alsa/asoundlib.h>
 #include <atomic>
-#include <functional>
+#include <memory>
 #include <mutex>
 #include <string>
 #include <thread>
 #include <unordered_map>
 #include <vector>
 
-#include "alsa_input.h"
-#include "bmusb/bmusb.h"
-#include "timebase.h"
-
 class ALSAInput;
 class DeviceSpecProto;
 
@@ -21,6 +16,7 @@ class DeviceSpecProto;
 // In particular, it deals with enumeration of cards, and hotplug of new ones.
 class ALSAPool {
 public:
+       ALSAPool();
        ~ALSAPool();
 
        struct Device {
@@ -149,6 +145,7 @@ private:
                                        const std::string &address);
 
        std::atomic<bool> should_quit{false};
+       int should_quit_fd;
        std::thread inotify_thread;
        std::atomic<int> retry_threads_running{0};