OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" | 11 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" |
12 | 12 |
13 #include <string.h> | 13 #include <string.h> |
14 #include <algorithm> | 14 #include <algorithm> |
15 | 15 |
16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
17 #include "webrtc/base/constructormagic.h" | 17 #include "webrtc/base/constructormagic.h" |
| 18 #include "webrtc/base/logging.h" |
18 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
19 #include "webrtc/modules/audio_processing/aec3/block_processor.h" | 20 #include "webrtc/modules/audio_processing/aec3/block_processor.h" |
20 #include "webrtc/modules/audio_processing/aec3/decimator_by_4.h" | 21 #include "webrtc/modules/audio_processing/aec3/decimator_by_4.h" |
21 #include "webrtc/modules/audio_processing/aec3/fft_data.h" | 22 #include "webrtc/modules/audio_processing/aec3/fft_data.h" |
22 #include "webrtc/system_wrappers/include/logging.h" | |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace { | 25 namespace { |
26 | 26 |
27 class ApiCallJitterBuffer { | 27 class ApiCallJitterBuffer { |
28 public: | 28 public: |
29 explicit ApiCallJitterBuffer(size_t num_bands) { | 29 explicit ApiCallJitterBuffer(size_t num_bands) { |
30 buffer_.fill(std::vector<std::vector<float>>( | 30 buffer_.fill(std::vector<std::vector<float>>( |
31 num_bands, std::vector<float>(kBlockSize, 0.f))); | 31 num_bands, std::vector<float>(kBlockSize, 0.f))); |
32 } | 32 } |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 } | 197 } |
198 } | 198 } |
199 | 199 |
200 } // namespace | 200 } // namespace |
201 | 201 |
202 RenderDelayBuffer* RenderDelayBuffer::Create(size_t num_bands) { | 202 RenderDelayBuffer* RenderDelayBuffer::Create(size_t num_bands) { |
203 return new RenderDelayBufferImpl(num_bands); | 203 return new RenderDelayBufferImpl(num_bands); |
204 } | 204 } |
205 | 205 |
206 } // namespace webrtc | 206 } // namespace webrtc |
OLD | NEW |