mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 11:59:54 +02:00
cleanup
This commit is contained in:
parent
d7079fce8c
commit
dd0d594524
2 changed files with 4 additions and 6 deletions
|
@ -10,7 +10,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
@ -125,13 +124,12 @@ static void FIR_1x4_SSE(float* src, float* dst0, float* dst1, float* dst2, float
|
||||||
|
|
||||||
#include "CPUDetect.h"
|
#include "CPUDetect.h"
|
||||||
|
|
||||||
typedef void FIR_1x4_t(float* src, float* dst0, float* dst1, float* dst2, float* dst3, float coef[4][HRTF_TAPS], int numFrames);
|
void FIR_1x4_AVX(float* src, float* dst0, float* dst1, float* dst2, float* dst3, float coef[4][HRTF_TAPS], int numFrames);
|
||||||
FIR_1x4_t FIR_1x4_AVX; // separate compilation with VEX-encoding enabled
|
|
||||||
|
|
||||||
static void FIR_1x4(float* src, float* dst0, float* dst1, float* dst2, float* dst3, float coef[4][HRTF_TAPS], int numFrames) {
|
static void FIR_1x4(float* src, float* dst0, float* dst1, float* dst2, float* dst3, float coef[4][HRTF_TAPS], int numFrames) {
|
||||||
|
|
||||||
static FIR_1x4_t* f = cpuSupportsAVX() ? FIR_1x4_AVX : FIR_1x4_SSE; // init on first call
|
static auto f = cpuSupportsAVX() ? FIR_1x4_AVX : FIR_1x4_SSE;
|
||||||
(*f)(src, dst0, dst1, dst2, dst3, coef, numFrames); // dispatch
|
(*f)(src, dst0, dst1, dst2, dst3, coef, numFrames); // dispatch
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4 channel planar to interleaved
|
// 4 channel planar to interleaved
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
// input: mono source
|
// input: mono source
|
||||||
// output: interleaved stereo mix buffer (accumulates into existing output)
|
// output: interleaved stereo mix buffer (accumulates into existing output)
|
||||||
// index: HRTF subject index
|
// index: HRTF subject index
|
||||||
// azimuth: clockwise panning angle [0, 360] in degrees
|
// azimuth: clockwise panning angle in radians
|
||||||
// gain: gain factor for distance attenuation
|
// gain: gain factor for distance attenuation
|
||||||
// numFrames: must be HRTF_BLOCK in this version
|
// numFrames: must be HRTF_BLOCK in this version
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue