Move the FrontStablizer definition to its own header

This commit is contained in:
Chris Robinson
2020-03-30 01:16:15 -07:00
parent f8a5ea2d74
commit cc009b8aa0
5 changed files with 28 additions and 15 deletions
+1
View File
@@ -623,6 +623,7 @@ SET(ALC_OBJS
alc/filters/splitter.h
alc/fpu_ctrl.cpp
alc/fpu_ctrl.h
alc/front_stablizer.h
alc/helpers.cpp
alc/hrtf.cpp
alc/hrtf.h
+1
View File
@@ -80,6 +80,7 @@
#include "filters/nfc.h"
#include "filters/splitter.h"
#include "fpu_ctrl.h"
#include "front_stablizer.h"
#include "hrtf.h"
#include "inprogext.h"
#include "intrusive_ptr.h"
+1 -15
View File
@@ -37,6 +37,7 @@ struct ALfilter;
struct BackendBase;
struct Compressor;
struct EffectState;
struct FrontStablizer;
struct Uhj2Encoder;
struct bs2b;
@@ -170,21 +171,6 @@ using FloatBufferLine = std::array<float,BUFFERSIZE>;
#define MAX_RESAMPLER_PADDING 48
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{};
+1
View File
@@ -66,6 +66,7 @@
#include "filters/nfc.h"
#include "filters/splitter.h"
#include "fpu_ctrl.h"
#include "front_stablizer.h"
#include "hrtf.h"
#include "inprogext.h"
#include "mastering.h"
+24
View File
@@ -0,0 +1,24 @@
#ifndef ALC_FRONT_STABLIZER_H
#define ALC_FRONT_STABLIZER_H
#include "alcmain.h"
#include "almalloc.h"
#include "devformat.h"
#include "filters/splitter.h"
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 /* ALC_FRONT_STABLIZER_H */