aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
-rw-r--r--al/auxeffectslot.cpp2
-rw-r--r--al/auxeffectslot.h2
-rw-r--r--al/buffer.cpp2
-rw-r--r--al/effect.cpp2
-rw-r--r--al/filter.cpp2
-rw-r--r--al/source.cpp2
-rw-r--r--al/state.cpp12
-rw-r--r--alc/alc.cpp2
-rw-r--r--alc/backends/sdl2.cpp5
-rw-r--r--alc/backends/sdl2.h2
-rw-r--r--alc/backends/solaris.cpp7
-rw-r--r--alc/backends/solaris.h2
-rw-r--r--alc/device.cpp4
-rw-r--r--alc/device.h (renamed from alc/alcmain.h)23
-rw-r--r--alc/panning.cpp2
16 files changed, 30 insertions, 44 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b286781..ac1e31d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -763,12 +763,13 @@ set(OPENAL_OBJS
# ALC and related routines
set(ALC_OBJS
alc/alc.cpp
- alc/alcmain.h
alc/alu.cpp
alc/alu.h
alc/alconfig.cpp
alc/alconfig.h
alc/alcontext.h
+ alc/device.cpp
+ alc/device.h
alc/effectslot.cpp
alc/effectslot.h
alc/effects/base.h
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index eee274b1..83904a44 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -36,9 +36,9 @@
#include "AL/efx.h"
#include "albit.h"
-#include "alc/alcmain.h"
#include "alc/alcontext.h"
#include "alc/alu.h"
+#include "alc/device.h"
#include "alc/inprogext.h"
#include "almalloc.h"
#include "alnumeric.h"
diff --git a/al/auxeffectslot.h b/al/auxeffectslot.h
index ca73c757..27423830 100644
--- a/al/auxeffectslot.h
+++ b/al/auxeffectslot.h
@@ -8,7 +8,7 @@
#include "AL/alc.h"
#include "AL/efx.h"
-#include "alc/alcmain.h"
+#include "alc/device.h"
#include "alc/effectslot.h"
#include "alc/effects/base.h"
#include "almalloc.h"
diff --git a/al/buffer.cpp b/al/buffer.cpp
index aaffddf1..4623ae30 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -43,8 +43,8 @@
#include "albit.h"
#include "albyte.h"
-#include "alc/alcmain.h"
#include "alc/alcontext.h"
+#include "alc/device.h"
#include "alc/inprogext.h"
#include "almalloc.h"
#include "alnumeric.h"
diff --git a/al/effect.cpp b/al/effect.cpp
index 2c39394f..5b10df2e 100644
--- a/al/effect.cpp
+++ b/al/effect.cpp
@@ -39,8 +39,8 @@
#include "AL/efx.h"
#include "albit.h"
-#include "alc/alcmain.h"
#include "alc/alcontext.h"
+#include "alc/device.h"
#include "alc/effects/base.h"
#include "almalloc.h"
#include "alnumeric.h"
diff --git a/al/filter.cpp b/al/filter.cpp
index 09249c81..0c4e647f 100644
--- a/al/filter.cpp
+++ b/al/filter.cpp
@@ -37,8 +37,8 @@
#include "AL/efx.h"
#include "albit.h"
-#include "alc/alcmain.h"
#include "alc/alcontext.h"
+#include "alc/device.h"
#include "almalloc.h"
#include "alnumeric.h"
#include "core/except.h"
diff --git a/al/source.cpp b/al/source.cpp
index 25d84f9f..9c45ebda 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -46,10 +46,10 @@
#include "AL/efx.h"
#include "albit.h"
-#include "alc/alcmain.h"
#include "alc/alcontext.h"
#include "alc/alu.h"
#include "alc/backends/base.h"
+#include "alc/device.h"
#include "alc/inprogext.h"
#include "almalloc.h"
#include "alnumeric.h"
diff --git a/al/state.cpp b/al/state.cpp
index b0b05972..396c15c7 100644
--- a/al/state.cpp
+++ b/al/state.cpp
@@ -24,25 +24,25 @@
#include <atomic>
#include <cmath>
-#include <cstdlib>
-#include <cstring>
#include <mutex>
+#include <stdexcept>
+#include <string>
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
-#include "alc/alcmain.h"
#include "alc/alcontext.h"
#include "alc/alu.h"
#include "alc/inprogext.h"
-#include "almalloc.h"
#include "alnumeric.h"
-#include "alspan.h"
+#include "aloptional.h"
#include "atomic.h"
+#include "core/context.h"
#include "core/except.h"
+#include "core/mixer/defs.h"
#include "core/voice.h"
-#include "event.h"
+#include "intrusive_ptr.h"
#include "opthelpers.h"
#include "strutils.h"
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 1f7b999d..9eface89 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -66,7 +66,6 @@
#include "al/listener.h"
#include "al/source.h"
#include "albit.h"
-#include "alcmain.h"
#include "albyte.h"
#include "alconfig.h"
#include "alcontext.h"
@@ -94,6 +93,7 @@
#include "core/logging.h"
#include "core/uhjfilter.h"
#include "core/voice_change.h"
+#include "device.h"
#include "effects/base.h"
#include "inprogext.h"
#include "intrusive_ptr.h"
diff --git a/alc/backends/sdl2.cpp b/alc/backends/sdl2.cpp
index 800ae935..fe8ece31 100644
--- a/alc/backends/sdl2.cpp
+++ b/alc/backends/sdl2.cpp
@@ -20,16 +20,15 @@
#include "config.h"
-#include "backends/sdl2.h"
+#include "sdl2.h"
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <string>
-#include "alcmain.h"
#include "almalloc.h"
-#include "alu.h"
+#include "core/device.h"
#include "core/logging.h"
#include <SDL2/SDL.h>
diff --git a/alc/backends/sdl2.h b/alc/backends/sdl2.h
index 3844b8bf..3bd8df86 100644
--- a/alc/backends/sdl2.h
+++ b/alc/backends/sdl2.h
@@ -1,7 +1,7 @@
#ifndef BACKENDS_SDL2_H
#define BACKENDS_SDL2_H
-#include "backends/base.h"
+#include "base.h"
struct SDL2BackendFactory final : public BackendFactory {
public:
diff --git a/alc/backends/solaris.cpp b/alc/backends/solaris.cpp
index 20414543..26f5a5c5 100644
--- a/alc/backends/solaris.cpp
+++ b/alc/backends/solaris.cpp
@@ -20,7 +20,7 @@
#include "config.h"
-#include "backends/solaris.h"
+#include "solaris.h"
#include <sys/ioctl.h>
#include <sys/types.h>
@@ -39,10 +39,9 @@
#include <thread>
#include <functional>
-#include "alcmain.h"
#include "albyte.h"
-#include "alu.h"
-#include "alconfig.h"
+#include "alc/alconfig.h"
+#include "core/device.h"
#include "core/helpers.h"
#include "core/logging.h"
#include "threads.h"
diff --git a/alc/backends/solaris.h b/alc/backends/solaris.h
index 4e80cf9a..5da6ad3a 100644
--- a/alc/backends/solaris.h
+++ b/alc/backends/solaris.h
@@ -1,7 +1,7 @@
#ifndef BACKENDS_SOLARIS_H
#define BACKENDS_SOLARIS_H
-#include "backends/base.h"
+#include "base.h"
struct SolarisBackendFactory final : public BackendFactory {
public:
diff --git a/alc/device.cpp b/alc/device.cpp
new file mode 100644
index 00000000..954a790b
--- /dev/null
+++ b/alc/device.cpp
@@ -0,0 +1,4 @@
+
+#include "config.h"
+
+#include "device.h"
diff --git a/alc/alcmain.h b/alc/device.h
index eb25b596..2f465b16 100644
--- a/alc/alcmain.h
+++ b/alc/device.h
@@ -1,35 +1,18 @@
-#ifndef ALC_MAIN_H
-#define ALC_MAIN_H
+#ifndef ALC_DEVICE_H
+#define ALC_DEVICE_H
-#include <algorithm>
-#include <array>
#include <atomic>
-#include <bitset>
-#include <chrono>
-#include <cstdint>
-#include <cstddef>
-#include <memory>
#include <mutex>
+#include <stdint.h>
#include <string>
-#include <thread>
#include <utility>
-#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "almalloc.h"
#include "alnumeric.h"
-#include "alspan.h"
-#include "atomic.h"
-#include "core/ambidefs.h"
-#include "core/bufferline.h"
-#include "core/devformat.h"
#include "core/device.h"
-#include "core/filters/splitter.h"
-#include "core/hrtf.h"
-#include "core/mixer/defs.h"
-#include "inprogext.h"
#include "intrusive_ptr.h"
#include "vector.h"
diff --git a/alc/panning.cpp b/alc/panning.cpp
index 5e263111..00fe9023 100644
--- a/alc/panning.cpp
+++ b/alc/panning.cpp
@@ -38,7 +38,6 @@
#include "AL/alext.h"
#include "al/auxeffectslot.h"
-#include "alcmain.h"
#include "alconfig.h"
#include "alcontext.h"
#include "almalloc.h"
@@ -56,6 +55,7 @@
#include "core/hrtf.h"
#include "core/logging.h"
#include "core/uhjfilter.h"
+#include "device.h"
#include "math_defs.h"
#include "opthelpers.h"