OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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_coding/audio_network_adaptor/audio_network_adapto
r_impl.h" | 11 #include "webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adapto
r_impl.h" |
12 | 12 |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 | 16 |
17 AudioNetworkAdaptorImpl::Config::Config() = default; | 17 AudioNetworkAdaptorImpl::Config::Config() = default; |
18 | 18 |
19 AudioNetworkAdaptorImpl::Config::~Config() = default; | 19 AudioNetworkAdaptorImpl::Config::~Config() = default; |
20 | 20 |
21 AudioNetworkAdaptorImpl::AudioNetworkAdaptorImpl( | 21 AudioNetworkAdaptorImpl::AudioNetworkAdaptorImpl( |
22 const Config& config, | 22 const Config& config, |
23 std::unique_ptr<ControllerManager> controller_manager) | |
24 : AudioNetworkAdaptorImpl(config, std::move(controller_manager), nullptr) {} | |
25 | |
26 AudioNetworkAdaptorImpl::AudioNetworkAdaptorImpl( | |
27 const Config& config, | |
28 std::unique_ptr<ControllerManager> controller_manager, | 23 std::unique_ptr<ControllerManager> controller_manager, |
29 std::unique_ptr<DebugDumpWriter> debug_dump_writer) | 24 std::unique_ptr<DebugDumpWriter> debug_dump_writer) |
30 : config_(config), | 25 : config_(config), |
31 controller_manager_(std::move(controller_manager)), | 26 controller_manager_(std::move(controller_manager)), |
32 debug_dump_writer_(std::move(debug_dump_writer)) { | 27 debug_dump_writer_(std::move(debug_dump_writer)) { |
33 RTC_DCHECK(controller_manager_); | 28 RTC_DCHECK(controller_manager_); |
34 } | 29 } |
35 | 30 |
36 AudioNetworkAdaptorImpl::~AudioNetworkAdaptorImpl() = default; | 31 AudioNetworkAdaptorImpl::~AudioNetworkAdaptorImpl() = default; |
37 | 32 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 debug_dump_writer_.reset(nullptr); | 83 debug_dump_writer_.reset(nullptr); |
89 } | 84 } |
90 | 85 |
91 void AudioNetworkAdaptorImpl::DumpNetworkMetrics() { | 86 void AudioNetworkAdaptorImpl::DumpNetworkMetrics() { |
92 if (debug_dump_writer_) | 87 if (debug_dump_writer_) |
93 debug_dump_writer_->DumpNetworkMetrics(last_metrics_, | 88 debug_dump_writer_->DumpNetworkMetrics(last_metrics_, |
94 config_.clock->TimeInMilliseconds()); | 89 config_.clock->TimeInMilliseconds()); |
95 } | 90 } |
96 | 91 |
97 } // namespace webrtc | 92 } // namespace webrtc |
OLD | NEW |