aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_sse.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-09-16 08:14:26 -0700
committerChris Robinson <[email protected]>2012-09-16 08:14:26 -0700
commita240abb6c85189ab9099326e5301b1c640a6398d (patch)
treec7644d811d6b95008af730dcb899dc6b3de4335a /Alc/mixer_sse.c
parentdd9d30e2489d938d5ec0d75702c82b943a1b3efa (diff)
Avoid building redundant mixers
Diffstat (limited to 'Alc/mixer_sse.c')
-rw-r--r--Alc/mixer_sse.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/Alc/mixer_sse.c b/Alc/mixer_sse.c
index c7898ce8..6a53115a 100644
--- a/Alc/mixer_sse.c
+++ b/Alc/mixer_sse.c
@@ -261,6 +261,10 @@ static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
}
}
+#define SUFFIX SSE
+#include "mixer_inc.c"
+#undef SUFFIX
+
void MixDirect_SSE(ALsource *Source, ALCdevice *Device, DirectParams *params,
const ALfloat *RESTRICT data, ALuint srcchan,
@@ -310,7 +314,7 @@ void MixDirect_SSE(ALsource *Source, ALCdevice *Device, DirectParams *params,
PendingClicks[c] += data[pos]*DrySend[c];
}
}
-#define NO_MIXDIRECT
+
void MixSend_SSE(SendParams *params, const ALfloat *RESTRICT data,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
@@ -338,9 +342,3 @@ void MixSend_SSE(SendParams *params, const ALfloat *RESTRICT data,
if(OutPos == SamplesToDo)
WetPendingClicks[0] += data[pos] * WetGain;
}
-#define NO_MIXSEND
-
-
-#define SUFFIX SSE
-#include "mixer_inc.c"
-#undef SUFFIX