diff options
author | Chris Robinson <[email protected]> | 2019-10-02 19:13:07 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-10-02 19:13:07 -0700 |
commit | 58085f1c7b64992065e65858d98acfd2c2db3514 (patch) | |
tree | 1e60a3475bd5df0d994bd7de202a13694cb5ce69 /alc | |
parent | 50198ee30c86f566f538e2ffd763caaaba1c45d4 (diff) |
Clean up some unnecessary includes
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alc.cpp | 5 | ||||
-rw-r--r-- | alc/alu.h | 16 | ||||
-rw-r--r-- | alc/voice.h | 3 |
3 files changed, 7 insertions, 17 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index fad43f7b..03ed35cc 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -877,6 +877,9 @@ ALeffect DefaultEffect; */ bool SuspendDefers{true}; +/* Initial seed for dithering. */ +constexpr ALuint DitherRNGSeed{22222u}; + /************************************************ * ALC information @@ -1861,7 +1864,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) device->FixedLatency = nanoseconds::zero(); device->DitherDepth = 0.0f; - device->DitherSeed = DITHER_RNG_SEED; + device->DitherSeed = DitherRNGSeed; /************************************************************************* * Update device format request if HRTF is requested @@ -2,39 +2,23 @@ #define ALU_H #include <array> -#include <atomic> #include <cmath> #include <cstddef> #include "AL/al.h" -#include "AL/alc.h" -#include "AL/alext.h" -#include "al/buffer.h" #include "alcmain.h" -#include "almalloc.h" #include "alspan.h" -#include "ambidefs.h" -#include "devformat.h" -#include "filters/biquad.h" -#include "filters/nfc.h" -#include "filters/splitter.h" -#include "hrtf.h" #include "logging.h" struct ALbufferlistitem; struct ALeffectslot; -enum class DistanceModel; - #define MAX_PITCH 255 #define MAX_SENDS 16 -#define DITHER_RNG_SEED 22222 - - using MixerFunc = void(*)(const al::span<const float> InSamples, const al::span<FloatBufferLine> OutBuffer, float *CurrentGains, const float *TargetGains, const size_t Counter, const size_t OutPos); diff --git a/alc/voice.h b/alc/voice.h index de77834e..3b1675e6 100644 --- a/alc/voice.h +++ b/alc/voice.h @@ -4,6 +4,7 @@ #include "AL/al.h" #include "AL/alext.h" +#include "al/buffer.h" #include "alspan.h" #include "alu.h" #include "filters/biquad.h" @@ -11,6 +12,8 @@ #include "filters/splitter.h" #include "hrtf.h" +enum class DistanceModel; + enum SpatializeMode { SpatializeOff = AL_FALSE, |