aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-09-14 04:48:23 -0700
committerChris Robinson <[email protected]>2012-09-14 04:48:53 -0700
commit90e0c74721f9353b51141be09630b76441e61bb7 (patch)
tree9d4d9e144f173d6a7c3ab430b35dcadaa6e4329a /Alc/ALu.c
parenta20341ac2abbc9fab85c83a9c1b4ec1da9c2708c (diff)
Implement an SSE linear resampler
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index b61e035c..3ab723dd 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -60,6 +60,10 @@ static ResamplerFunc SelectResampler(enum Resampler Resampler, ALuint increment)
case PointResampler:
return Resample_point32_C;
case LinearResampler:
+#ifdef HAVE_SSE
+ if((CPUCapFlags&CPU_CAP_SSE))
+ return Resample_lerp32_SSE;
+#endif
return Resample_lerp32_C;
case CubicResampler:
return Resample_cubic32_C;