aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alc/backends/alsa.cpp1
-rw-r--r--alc/backends/coreaudio.cpp8
-rw-r--r--alc/backends/dsound.cpp14
-rw-r--r--alc/backends/jack.cpp4
-rw-r--r--alc/backends/oboe.cpp1
-rw-r--r--alc/backends/opensl.cpp3
-rw-r--r--alc/backends/oss.cpp2
-rw-r--r--alc/backends/winmm.cpp4
-rw-r--r--core/context.cpp3
-rw-r--r--core/context.h13
-rw-r--r--core/device.h4
11 files changed, 28 insertions, 29 deletions
diff --git a/alc/backends/alsa.cpp b/alc/backends/alsa.cpp
index 74713590..c1690867 100644
--- a/alc/backends/alsa.cpp
+++ b/alc/backends/alsa.cpp
@@ -31,6 +31,7 @@
#include <exception>
#include <functional>
#include <memory>
+#include <mutex>
#include <string>
#include <thread>
#include <utility>
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp
index 19a1f753..c2a79815 100644
--- a/alc/backends/coreaudio.cpp
+++ b/alc/backends/coreaudio.cpp
@@ -22,17 +22,17 @@
#include "coreaudio.h"
+#include <cmath>
#include <inttypes.h>
+#include <memory>
+#include <mutex>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string>
#include <string.h>
#include <unistd.h>
-#include <cmath>
-#include <memory>
-#include <string>
-
#include "alnumeric.h"
#include "core/converter.h"
#include "core/device.h"
diff --git a/alc/backends/dsound.cpp b/alc/backends/dsound.cpp
index 05117781..ffcd8430 100644
--- a/alc/backends/dsound.cpp
+++ b/alc/backends/dsound.cpp
@@ -25,10 +25,6 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <memory.h>
-
#include <cguid.h>
#include <mmreg.h>
#ifndef _WAVEFORMATEXTENSIBLE_
@@ -36,13 +32,17 @@
#include <ksmedia.h>
#endif
+#include <algorithm>
#include <atomic>
#include <cassert>
-#include <thread>
+#include <functional>
+#include <memory.h>
+#include <mutex>
+#include <stdlib.h>
+#include <stdio.h>
#include <string>
+#include <thread>
#include <vector>
-#include <algorithm>
-#include <functional>
#include "albit.h"
#include "alnumeric.h"
diff --git a/alc/backends/jack.cpp b/alc/backends/jack.cpp
index 7e1e8fc7..b12edf9f 100644
--- a/alc/backends/jack.cpp
+++ b/alc/backends/jack.cpp
@@ -22,12 +22,12 @@
#include "jack.h"
+#include <array>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <memory.h>
-
-#include <array>
+#include <mutex>
#include <thread>
#include <functional>
diff --git a/alc/backends/oboe.cpp b/alc/backends/oboe.cpp
index 4c47190e..c74b0180 100644
--- a/alc/backends/oboe.cpp
+++ b/alc/backends/oboe.cpp
@@ -5,6 +5,7 @@
#include <cassert>
#include <cstring>
+#include <mutex>
#include <stdint.h>
#include "alnumeric.h"
diff --git a/alc/backends/opensl.cpp b/alc/backends/opensl.cpp
index 0c2936b2..c9053816 100644
--- a/alc/backends/opensl.cpp
+++ b/alc/backends/opensl.cpp
@@ -26,9 +26,10 @@
#include <stdlib.h>
#include <jni.h>
-#include <new>
#include <array>
#include <cstring>
+#include <mutex>
+#include <new>
#include <thread>
#include <functional>
diff --git a/alc/backends/oss.cpp b/alc/backends/oss.cpp
index 9e247be1..1fdee701 100644
--- a/alc/backends/oss.cpp
+++ b/alc/backends/oss.cpp
@@ -31,12 +31,10 @@
#include <algorithm>
#include <atomic>
#include <cerrno>
-#include <cstdio>
#include <cstring>
#include <exception>
#include <functional>
#include <memory>
-#include <new>
#include <string>
#include <thread>
#include <utility>
diff --git a/alc/backends/winmm.cpp b/alc/backends/winmm.cpp
index 135b59df..edb875a0 100644
--- a/alc/backends/winmm.cpp
+++ b/alc/backends/winmm.cpp
@@ -55,8 +55,8 @@ namespace {
#define DEVNAME_HEAD "OpenAL Soft on "
-al::vector<std::string> PlaybackDevices;
-al::vector<std::string> CaptureDevices;
+std::vector<std::string> PlaybackDevices;
+std::vector<std::string> CaptureDevices;
bool checkName(const al::vector<std::string> &list, const std::string &name)
{ return std::find(list.cbegin(), list.cend(), name) != list.cend(); }
diff --git a/core/context.cpp b/core/context.cpp
index d94daf16..145ce349 100644
--- a/core/context.cpp
+++ b/core/context.cpp
@@ -2,7 +2,10 @@
#include "config.h"
#include <cassert>
+#include <limits>
#include <memory>
+#include <stdexcept>
+#include <utility>
#include "async_event.h"
#include "context.h"
diff --git a/core/context.h b/core/context.h
index 4febd38d..629e67a5 100644
--- a/core/context.h
+++ b/core/context.h
@@ -7,16 +7,15 @@
#include <cstddef>
#include <memory>
#include <thread>
+#include <vector>
#include "almalloc.h"
#include "alspan.h"
#include "async_event.h"
#include "atomic.h"
-#include "bufferline.h"
#include "opthelpers.h"
#include "threads.h"
#include "vecmat.h"
-#include "vector.h"
struct DeviceBase;
struct EffectSlot;
@@ -26,8 +25,6 @@ struct Voice;
struct VoiceChange;
struct VoicePropsItem;
-using uint = unsigned int;
-
constexpr float SpeedOfSoundMetersPerSec{343.3f};
@@ -147,20 +144,20 @@ struct ContextBase {
* in clusters that are stored in a vector for easy automatic cleanup.
*/
using VoiceChangeCluster = std::unique_ptr<VoiceChange[]>;
- al::vector<VoiceChangeCluster> mVoiceChangeClusters;
+ std::vector<VoiceChangeCluster> mVoiceChangeClusters;
using VoiceCluster = std::unique_ptr<Voice[]>;
- al::vector<VoiceCluster> mVoiceClusters;
+ std::vector<VoiceCluster> mVoiceClusters;
using VoicePropsCluster = std::unique_ptr<VoicePropsItem[]>;
- al::vector<VoicePropsCluster> mVoicePropClusters;
+ std::vector<VoicePropsCluster> mVoicePropClusters;
static constexpr size_t EffectSlotClusterSize{4};
EffectSlot *getEffectSlot();
using EffectSlotCluster = std::unique_ptr<EffectSlot[]>;
- al::vector<EffectSlotCluster> mEffectSlotClusters;
+ std::vector<EffectSlotCluster> mEffectSlotClusters;
ContextBase(DeviceBase *device);
diff --git a/core/device.h b/core/device.h
index bc180582..33cdfe89 100644
--- a/core/device.h
+++ b/core/device.h
@@ -1,14 +1,12 @@
#ifndef CORE_DEVICE_H
#define CORE_DEVICE_H
-#include <stddef.h>
-
#include <array>
#include <atomic>
#include <bitset>
#include <chrono>
#include <memory>
-#include <mutex>
+#include <stddef.h>
#include <stdint.h>
#include <string>