mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
update openal-soft
sync point: master-ac5d40e40a0155351fe1be4aab30017b6a13a859
This commit is contained in:
parent
762a84550f
commit
3603188b7f
365 changed files with 76053 additions and 53126 deletions
36
Engine/lib/openal-soft/Alc/front_stablizer.h
Normal file
36
Engine/lib/openal-soft/Alc/front_stablizer.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#ifndef ALC_FRONT_STABLIZER_H
|
||||
#define ALC_FRONT_STABLIZER_H
|
||||
|
||||
#include <array>
|
||||
#include <memory>
|
||||
|
||||
#include "almalloc.h"
|
||||
#include "core/bufferline.h"
|
||||
#include "core/filters/splitter.h"
|
||||
|
||||
|
||||
struct FrontStablizer {
|
||||
static constexpr size_t DelayLength{256u};
|
||||
|
||||
FrontStablizer(size_t numchans) : DelayBuf{numchans} { }
|
||||
|
||||
alignas(16) std::array<float,BufferLineSize + DelayLength> Side{};
|
||||
alignas(16) std::array<float,BufferLineSize + DelayLength> MidDirect{};
|
||||
alignas(16) std::array<float,DelayLength> MidDelay{};
|
||||
|
||||
alignas(16) std::array<float,BufferLineSize + DelayLength> TempBuf{};
|
||||
|
||||
BandSplitter MidFilter;
|
||||
alignas(16) FloatBufferLine MidLF{};
|
||||
alignas(16) FloatBufferLine MidHF{};
|
||||
|
||||
using DelayLine = std::array<float,DelayLength>;
|
||||
al::FlexArray<DelayLine,16> DelayBuf;
|
||||
|
||||
static std::unique_ptr<FrontStablizer> Create(size_t numchans)
|
||||
{ return std::unique_ptr<FrontStablizer>{new(FamCount(numchans)) FrontStablizer{numchans}}; }
|
||||
|
||||
DEF_FAM_NEWDEL(FrontStablizer, DelayBuf)
|
||||
};
|
||||
|
||||
#endif /* ALC_FRONT_STABLIZER_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue