12 #ifndef hifi_AudioFOA_h
13 #define hifi_AudioFOA_h
17 static const int FOA_TAPS = 273;
18 static const int FOA_NFFT = 512;
19 static const int FOA_OVERLAP = FOA_TAPS - 1;
20 static const int FOA_TABLES = 25;
22 static const int FOA_BLOCK = 240;
24 static const float FOA_GAIN = 1.0f;
26 static_assert((FOA_BLOCK + FOA_OVERLAP) == FOA_NFFT,
"FFT convolution requires L+M-1 == NFFT");
41 void render(int16_t* input,
float* output,
int index,
float qw,
float qx,
float qy,
float qz,
float gain,
int numFrames);
44 AudioFOA(
const AudioFOA&) =
delete;
45 AudioFOA& operator=(
const AudioFOA&) =
delete;
51 float _fftState[4][FOA_OVERLAP] = {};
54 float _rotationState[4][4] = {};
56 bool _resetState =
true;