aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-09-14 07:01:58 -0700
committerChris Robinson <[email protected]>2012-09-14 07:01:58 -0700
commit28086f6cb7f0e5c35a97ba60c8e28969981a8817 (patch)
treee403589004fd2fcbfd92698dda343913e938bd55 /Alc/ALu.c
parent45bb010b2801fefb0e154cc6d18c2f7d60d302db (diff)
Implement an SSE cubic resampler
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 3ab723dd..b94216ff 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -66,13 +66,17 @@ static ResamplerFunc SelectResampler(enum Resampler Resampler, ALuint increment)
#endif
return Resample_lerp32_C;
case CubicResampler:
+#ifdef HAVE_SSE
+ if((CPUCapFlags&CPU_CAP_SSE))
+ return Resample_cubic32_SSE;
+#endif
return Resample_cubic32_C;
case ResamplerMax:
/* Shouldn't happen */
break;
}
- return NULL;
+ return Resample_point32_C;
}