Index: webrtc/common_audio/resampler/sinc_resampler.cc |
diff --git a/webrtc/common_audio/resampler/sinc_resampler.cc b/webrtc/common_audio/resampler/sinc_resampler.cc |
index acf7d0fae942d516e93091d2510d9778c7af74b6..2f17ded98b8b87055e9345d8ba2940ee9cc3ed7e 100644 |
--- a/webrtc/common_audio/resampler/sinc_resampler.cc |
+++ b/webrtc/common_audio/resampler/sinc_resampler.cc |
@@ -160,12 +160,12 @@ SincResampler::SincResampler(double io_sample_rate_ratio, |
AlignedMalloc(sizeof(float) * kKernelStorageSize, 16))), |
input_buffer_(static_cast<float*>( |
AlignedMalloc(sizeof(float) * input_buffer_size_, 16))), |
-#if defined(WEBRTC_CPU_DETECTION) |
+#if (defined(WEBRTC_ARCH_X86_FAMILY) && !defined(__SSE2__)) |
convolve_proc_(nullptr), |
#endif |
r1_(input_buffer_.get()), |
r2_(input_buffer_.get() + kKernelSize / 2) { |
-#if defined(WEBRTC_CPU_DETECTION) |
+#if (defined(WEBRTC_ARCH_X86_FAMILY) && !defined(__SSE2__)) |
InitializeCPUSpecificFeatures(); |
RTC_DCHECK(convolve_proc_); |
#endif |