From 65e6ab31eb9f1ffcec18241293e4aea6aa3da8c5 Mon Sep 17 00:00:00 2001 From: "bjornv@google.com" Date: Wed, 21 Sep 2011 11:56:46 +0000 Subject: [PATCH] Temporary log2 remove to build in chrome git-svn-id: http://webrtc.googlecode.com/svn/trunk@633 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../audio_processing/utility/delay_estimator_float.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/audio_processing/utility/delay_estimator_float.c b/src/modules/audio_processing/utility/delay_estimator_float.c index 800096eef8..c7be525dc0 100644 --- a/src/modules/audio_processing/utility/delay_estimator_float.c +++ b/src/modules/audio_processing/utility/delay_estimator_float.c @@ -206,7 +206,8 @@ int WebRtc_DelayEstimatorProcessFloat(void* handle, // TODO(bjornv): I've taken the size of FFT into account, since there is a // different scaling in float vs fixed point FFTs. I'm not completely sure // this is necessary. - freq_scaling_log = 14 - (int) log2(max_value / kFftSize + 1); + // TODO(bjornv): Replace log2() + freq_scaling_log = 0;//14; - (int) log2(max_value / kFftSize + 1); freq_scaling = (float) (1 << freq_scaling_log) / kFftSize; for (i = 0; i < spectrum_size; ++i) { self->near_spectrum_u16[i] = (uint16_t) (near_spectrum[i] * freq_scaling); @@ -221,7 +222,8 @@ int WebRtc_DelayEstimatorProcessFloat(void* handle, } // Find the largest possible scaling that is a multiple of two. // With largest we mean to fit in a Word16. - freq_scaling_log = 14 - (int) log2(max_value / kFftSize + 1); + // TODO(bjornv): Replace log2() + freq_scaling_log = 0;//14 - (int) log2(max_value / kFftSize + 1); freq_scaling = (float) (1 << freq_scaling_log) / kFftSize; for (i = 0; i < spectrum_size; ++i) { self->far_spectrum_u16[i] = (uint16_t) (far_spectrum[i] * freq_scaling);