aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_inc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-08-15 08:19:04 -0700
committerChris Robinson <[email protected]>2012-08-15 08:19:04 -0700
commit0bca771a88f83e77cd6a5eb04757125b4fa5dc6c (patch)
tree5d38eb665129c0b708e1b61634922b54a96d05fb /Alc/mixer_inc.c
parentf4ff63e2715b28e8ed1fd54e48e3ee6077f1689d (diff)
Apply HRTF mixer coefficients with stepping using SSE
Diffstat (limited to 'Alc/mixer_inc.c')
-rw-r--r--Alc/mixer_inc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c
index b7051f64..3e9d7f46 100644
--- a/Alc/mixer_inc.c
+++ b/Alc/mixer_inc.c
@@ -107,15 +107,7 @@ void MERGE4(MixDirect_Hrtf_,SAMPLER,_,SUFFIX)(
Values[Offset&HRIR_MASK][1] = 0.0f;
Offset++;
- for(c = 0;c < HRIR_LENGTH;c++)
- {
- const ALuint off = (Offset+c)&HRIR_MASK;
- Values[off][0] += Coeffs[c][0] * left;
- Values[off][1] += Coeffs[c][1] * right;
- Coeffs[c][0] += CoeffStep[c][0];
- Coeffs[c][1] += CoeffStep[c][1];
- }
-
+ ApplyCoeffsStep(Offset, Values, Coeffs, CoeffStep, left, right);
DryBuffer[OutPos][FrontLeft] += Values[Offset&HRIR_MASK][0];
DryBuffer[OutPos][FrontRight] += Values[Offset&HRIR_MASK][1];