openal-soft/common/bsinc_tables.h
Chris Robinson 8853519d89 Generate the bsinc tables using constexpr methods
All the methods used should be compliant with C++14 constexpr rules. However,
the number of scales and phases cause GenerateBSincCoeffs to reach the allowed
step limit, preventing full compile-time generation. It's not a terribly big
deal, it'll generate them very quickly when loading, but it does prevent using
shared read-only memory pages.
2020-04-02 00:49:19 -07:00

18 lines
336 B
C

#ifndef BSINC_TABLES_H
#define BSINC_TABLES_H
#include "bsinc_defs.h"
struct BSincTable {
float scaleBase, scaleRange;
unsigned int m[BSINC_SCALE_COUNT];
unsigned int filterOffset[BSINC_SCALE_COUNT];
const float *Tab;
};
extern const BSincTable bsinc12;
extern const BSincTable bsinc24;
#endif /* BSINC_TABLES_H */