diff options
author | Chris Robinson <[email protected]> | 2019-08-05 15:11:03 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-05 15:11:47 -0700 |
commit | d06afa7ca11e06186a62c9465ad099374a4514e7 (patch) | |
tree | 01d9f51b63b0aa91bd4fd5ad7c90c7a3305e7964 /alc | |
parent | e286ec8d09b8d0a1939bca9eaa196514347282b1 (diff) |
Move a struct definition to where it's used
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alcmain.h | 17 | ||||
-rw-r--r-- | alc/filters/splitter.h | 18 |
2 files changed, 16 insertions, 19 deletions
diff --git a/alc/alcmain.h b/alc/alcmain.h index e7451ab0..464febcc 100644 --- a/alc/alcmain.h +++ b/alc/alcmain.h @@ -23,6 +23,7 @@ #include "ambidefs.h" #include "atomic.h" #include "devformat.h" +#include "filters/splitter.h" #include "hrtf.h" #include "inprogext.h" #include "intrusive_ptr.h" @@ -35,7 +36,6 @@ struct ALfilter; struct BackendBase; struct Compressor; struct EffectState; -struct FrontStablizer; struct Uhj2Encoder; struct bs2b; @@ -160,6 +160,21 @@ using FloatBufferLine = std::array<float,BUFFERSIZE>; #define MAX_RESAMPLE_PADDING 24 +struct FrontStablizer { + static constexpr size_t DelayLength{256u}; + + alignas(16) float DelayBuf[MAX_OUTPUT_CHANNELS][DelayLength]; + + BandSplitter LFilter, RFilter; + alignas(16) float LSplit[2][BUFFERSIZE]; + alignas(16) float RSplit[2][BUFFERSIZE]; + + alignas(16) float TempBuf[BUFFERSIZE + DelayLength]; + + DEF_NEWDEL(FrontStablizer) +}; + + struct MixParams { /* Coefficient channel mapping for mixing to the buffer. */ std::array<BFChannelConfig,MAX_OUTPUT_CHANNELS> AmbiMap{}; diff --git a/alc/filters/splitter.h b/alc/filters/splitter.h index 52bda713..b024f0c3 100644 --- a/alc/filters/splitter.h +++ b/alc/filters/splitter.h @@ -3,9 +3,6 @@ #include <cstddef> -#include "alcmain.h" -#include "almalloc.h" - /* Band splitter. Splits a signal into two phase-matching frequency bands. */ template<typename Real> @@ -34,19 +31,4 @@ public: }; using BandSplitter = BandSplitterR<float>; - -struct FrontStablizer { - static constexpr size_t DelayLength{256u}; - - alignas(16) float DelayBuf[MAX_OUTPUT_CHANNELS][DelayLength]; - - BandSplitter LFilter, RFilter; - alignas(16) float LSplit[2][BUFFERSIZE]; - alignas(16) float RSplit[2][BUFFERSIZE]; - - alignas(16) float TempBuf[BUFFERSIZE + DelayLength]; - - DEF_NEWDEL(FrontStablizer) -}; - #endif /* FILTER_SPLITTER_H */ |