Fix HRTF index calculations for B-Format coefficients
commitd16954c34ebb4bfbd4e7ef27090b01d6f4ff9261
authorChris Robinson <chris.kcat@gmail.com>
Fri, 19 Aug 2016 06:33:08 +0000 (18 23:33 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Fri, 19 Aug 2016 06:33:08 +0000 (18 23:33 -0700)
tree75222d2dc3b8b7d2ee1ca29f23a4a6e6d14d4ce8
parente13c6bca207d5a7659fca03a9576bcab6ea7728e
Fix HRTF index calculations for B-Format coefficients

The CalcEvIndices and CalcAzIndices methods were dependent on the FPU being in
round-to-zero mode, which is not the case for panning initialization. And since
we just need the closest index and don't need to lerp between them, it's better
to just directly calculate the index with rounding.
Alc/hrtf.c