aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
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;
}