OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 /* | 11 /* |
12 * Contains the API functions for the AEC. | 12 * Contains the API functions for the AEC. |
13 */ | 13 */ |
14 #include "webrtc/modules/audio_processing/aec/include/echo_cancellation.h" | 14 #include "webrtc/modules/audio_processing/aec/echo_cancellation.h" |
15 | 15 |
16 #include <math.h> | 16 #include <math.h> |
17 #ifdef WEBRTC_AEC_DEBUG_DUMP | 17 #ifdef WEBRTC_AEC_DEBUG_DUMP |
18 #include <stdio.h> | 18 #include <stdio.h> |
19 #endif | 19 #endif |
20 #include <stdlib.h> | 20 #include <stdlib.h> |
21 #include <string.h> | 21 #include <string.h> |
22 | 22 |
23 #include "webrtc/common_audio/ring_buffer.h" | 23 #include "webrtc/common_audio/ring_buffer.h" |
24 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 24 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 } | 896 } |
897 } else { | 897 } else { |
898 self->timeForDelayChange = 0; | 898 self->timeForDelayChange = 0; |
899 } | 899 } |
900 self->lastDelayDiff = delay_difference; | 900 self->lastDelayDiff = delay_difference; |
901 | 901 |
902 if (self->timeForDelayChange > 25) { | 902 if (self->timeForDelayChange > 25) { |
903 self->knownDelay = WEBRTC_SPL_MAX((int)self->filtDelay - 256, 0); | 903 self->knownDelay = WEBRTC_SPL_MAX((int)self->filtDelay - 256, 0); |
904 } | 904 } |
905 } | 905 } |
OLD | NEW |