From 3c042a054d3cf714959ec58d81e77fc6d8cbb650 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 29 Aug 2012 01:56:04 -0700 Subject: Add an SSE-enhanced path for applying the mixer matrix --- Alc/mixer_c.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Alc/mixer_c.c') diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c index eeb75bf4..57f39090 100644 --- a/Alc/mixer_c.c +++ b/Alc/mixer_c.c @@ -35,6 +35,15 @@ static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2], } } + +static __inline void ApplyValue(ALfloat *RESTRICT Output, ALfloat value, const ALfloat *DrySend) +{ + ALuint c; + for(c = 0;c < MaxChannels;c++) + Output[c] += value*DrySend[c]; +} + + #define SUFFIX C #define SAMPLER point32 #include "mixer_inc.c" -- cgit v1.2.3