#ifndef CORE_MIXER_HRTFDEFS_H #define CORE_MIXER_HRTFDEFS_H #include #include "core/ambidefs.h" #include "core/bufferline.h" #include "core/filters/splitter.h" #define HRTF_HISTORY_BITS 6 #define HRTF_HISTORY_LENGTH (1<; using HrirArray = std::array; using ubyte = unsigned char; using ubyte2 = std::array; using ushort = unsigned short; using uint = unsigned int; struct MixHrtfFilter { const HrirArray *Coeffs; std::array Delay; float Gain; float GainStep; }; struct HrtfFilter { alignas(16) HrirArray Coeffs; std::array Delay; float Gain; }; struct HrtfChannelState { std::array mDelay{}; BandSplitter mSplitter; float mHfScale{}; alignas(16) HrirArray mCoeffs{}; }; #endif /* CORE_MIXER_HRTFDEFS_H */