From 8dc3985a10db23f600bf1555d87114976c0bee2f Mon Sep 17 00:00:00 2001 From: "tommi@webrtc.org" Date: Thu, 15 Sep 2011 15:01:04 +0000 Subject: [PATCH] Fix windows build. Review URL: http://webrtc-codereview.appspot.com/150001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@600 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/audio_processing/utility/delay_estimator.c | 4 ++-- src/modules/audio_processing/utility/delay_estimator.h | 2 +- src/modules/audio_processing/utility/delay_estimator_float.c | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/audio_processing/utility/delay_estimator.c b/src/modules/audio_processing/utility/delay_estimator.c index cb65c20d7c..044d545907 100644 --- a/src/modules/audio_processing/utility/delay_estimator.c +++ b/src/modules/audio_processing/utility/delay_estimator.c @@ -11,7 +11,6 @@ #include "delay_estimator.h" #include -#include #include #include @@ -231,11 +230,12 @@ int WebRtc_CreateDelayEstimator(void** handle, int spectrum_size, int history_size, int enable_alignment) { + DelayEstimator_t *self = NULL; + // Check if the sub band used in the delay estimation is small enough to // fit the binary spectra in a uint32. assert(kBandLast - kBandFirst < 32); - DelayEstimator_t *self = NULL; if (spectrum_size < kBandLast) { return -1; } diff --git a/src/modules/audio_processing/utility/delay_estimator.h b/src/modules/audio_processing/utility/delay_estimator.h index 190de19abe..9b77b55675 100644 --- a/src/modules/audio_processing/utility/delay_estimator.h +++ b/src/modules/audio_processing/utility/delay_estimator.h @@ -14,7 +14,7 @@ #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_DELAY_ESTIMATOR_H_ #define WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_DELAY_ESTIMATOR_H_ -#include +#include "typedefs.h" // Releases the memory allocated by WebRtc_CreateDelayEstimator(...) // Input: diff --git a/src/modules/audio_processing/utility/delay_estimator_float.c b/src/modules/audio_processing/utility/delay_estimator_float.c index 8312c56d04..800096eef8 100644 --- a/src/modules/audio_processing/utility/delay_estimator_float.c +++ b/src/modules/audio_processing/utility/delay_estimator_float.c @@ -12,7 +12,6 @@ #include #include -#include #include #include