Store the filter table directly in the cubic filter object
[openal-soft.git] / core / cubic_defs.h
bloba382081640f9b61314dd3517c3d970b0071179dc
1 #ifndef CORE_CUBIC_DEFS_H
2 #define CORE_CUBIC_DEFS_H
4 #include <array>
6 /* The number of distinct phase intervals within the cubic filter tables. */
7 constexpr unsigned int CubicPhaseBits{5};
8 constexpr unsigned int CubicPhaseCount{1 << CubicPhaseBits};
10 struct CubicCoefficients {
11 alignas(16) std::array<float,4> mCoeffs;
12 alignas(16) std::array<float,4> mDeltas;
15 #endif /* CORE_CUBIC_DEFS_H */