diff options
Diffstat (limited to 'alc/front_stablizer.h')
-rw-r--r-- | alc/front_stablizer.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/alc/front_stablizer.h b/alc/front_stablizer.h new file mode 100644 index 00000000..ad31508a --- /dev/null +++ b/alc/front_stablizer.h @@ -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 */ |