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 #include "webrtc/modules/audio_processing/aec3/render_delay_controller.h" | 10 #include "webrtc/modules/audio_processing/aec3/render_delay_controller.h" |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <memory> | 13 #include <memory> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
| 17 #include "webrtc/base/atomicops.h" |
| 18 #include "webrtc/base/constructormagic.h" |
17 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
18 #include "webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h" | 20 #include "webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h" |
19 #include "webrtc/modules/audio_processing/aec3/render_delay_controller_metrics.h
" | 21 #include "webrtc/modules/audio_processing/aec3/render_delay_controller_metrics.h
" |
20 #include "webrtc/rtc_base/atomicops.h" | |
21 #include "webrtc/rtc_base/constructormagic.h" | |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 class RenderDelayControllerImpl final : public RenderDelayController { | 27 class RenderDelayControllerImpl final : public RenderDelayController { |
28 public: | 28 public: |
29 RenderDelayControllerImpl(int sample_rate_hz); | 29 RenderDelayControllerImpl(int sample_rate_hz); |
30 ~RenderDelayControllerImpl() override; | 30 ~RenderDelayControllerImpl() override; |
31 void Reset() override; | 31 void Reset() override; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 return delay_; | 132 return delay_; |
133 } | 133 } |
134 | 134 |
135 } // namespace | 135 } // namespace |
136 | 136 |
137 RenderDelayController* RenderDelayController::Create(int sample_rate_hz) { | 137 RenderDelayController* RenderDelayController::Create(int sample_rate_hz) { |
138 return new RenderDelayControllerImpl(sample_rate_hz); | 138 return new RenderDelayControllerImpl(sample_rate_hz); |
139 } | 139 } |
140 | 140 |
141 } // namespace webrtc | 141 } // namespace webrtc |
OLD | NEW |