aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/base.cpp11
-rw-r--r--alc/backends/base.h5
-rw-r--r--alc/backends/pulseaudio.cpp36
3 files changed, 35 insertions, 17 deletions
diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp
index c4a4abeb..0c28d238 100644
--- a/alc/backends/base.cpp
+++ b/alc/backends/base.cpp
@@ -3,21 +3,22 @@
#include "base.h"
+#include <algorithm>
+#include <array>
#include <atomic>
-#include <thread>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <mmreg.h>
-#endif
#include "albit.h"
-#include "alcmain.h"
-#include "alnumeric.h"
+#include "core/logging.h"
#include "aloptional.h"
+#endif
+
#include "atomic.h"
-#include "core/logging.h"
+#include "core/devformat.h"
bool BackendBase::reset()
diff --git a/alc/backends/base.h b/alc/backends/base.h
index 853df893..d661bc46 100644
--- a/alc/backends/base.h
+++ b/alc/backends/base.h
@@ -2,12 +2,13 @@
#define ALC_BACKENDS_BASE_H
#include <chrono>
+#include <cstdarg>
#include <memory>
-#include <mutex>
+#include <ratio>
#include <string>
#include "albyte.h"
-#include "alcmain.h"
+#include "core/device.h"
#include "core/except.h"
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp
index 39eed771..da1ffcb0 100644
--- a/alc/backends/pulseaudio.cpp
+++ b/alc/backends/pulseaudio.cpp
@@ -23,31 +23,47 @@
#include "backends/pulseaudio.h"
-#include <poll.h>
-#include <cstring>
-
+#include <algorithm>
#include <array>
-#include <string>
-#include <vector>
#include <atomic>
-#include <thread>
-#include <algorithm>
-#include <functional>
+#include <bitset>
+#include <chrono>
#include <condition_variable>
+#include <cstring>
+#include <functional>
+#include <limits>
+#include <mutex>
+#include <new>
+#include <poll.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <string>
+#include <sys/types.h>
+#include <thread>
+#include <utility>
-#include "alcmain.h"
-#include "alu.h"
+#include "albyte.h"
#include "alconfig.h"
+#include "almalloc.h"
+#include "alnumeric.h"
+#include "aloptional.h"
+#include "alspan.h"
+#include "core/devformat.h"
+#include "core/device.h"
#include "core/helpers.h"
#include "core/logging.h"
#include "dynload.h"
+#include "opthelpers.h"
#include "strutils.h"
+#include "vector.h"
#include <pulse/pulseaudio.h>
namespace {
+using uint = unsigned int;
+
#ifdef HAVE_DYNLOAD
#define PULSE_FUNCS(MAGIC) \
MAGIC(pa_mainloop_new); \