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 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void SetTargetAudioBitrate(int target_audio_bitrate_bps) override; | 51 void SetTargetAudioBitrate(int target_audio_bitrate_bps) override; |
52 | 52 |
53 void SetOverhead(size_t overhead_bytes_per_packet) override; | 53 void SetOverhead(size_t overhead_bytes_per_packet) override; |
54 | 54 |
55 AudioEncoderRuntimeConfig GetEncoderRuntimeConfig() override; | 55 AudioEncoderRuntimeConfig GetEncoderRuntimeConfig() override; |
56 | 56 |
57 void StartDebugDump(FILE* file_handle) override; | 57 void StartDebugDump(FILE* file_handle) override; |
58 | 58 |
59 void StopDebugDump() override; | 59 void StopDebugDump() override; |
60 | 60 |
| 61 ANAStats GetStats() const override; |
| 62 |
61 private: | 63 private: |
62 void DumpNetworkMetrics(); | 64 void DumpNetworkMetrics(); |
63 | 65 |
64 void UpdateNetworkMetrics(const Controller::NetworkMetrics& network_metrics); | 66 void UpdateNetworkMetrics(const Controller::NetworkMetrics& network_metrics); |
65 | 67 |
66 const Config config_; | 68 const Config config_; |
67 | 69 |
68 std::unique_ptr<ControllerManager> controller_manager_; | 70 std::unique_ptr<ControllerManager> controller_manager_; |
69 | 71 |
70 std::unique_ptr<DebugDumpWriter> debug_dump_writer_; | 72 std::unique_ptr<DebugDumpWriter> debug_dump_writer_; |
71 | 73 |
72 const std::unique_ptr<EventLogWriter> event_log_writer_; | 74 const std::unique_ptr<EventLogWriter> event_log_writer_; |
73 | 75 |
74 Controller::NetworkMetrics last_metrics_; | 76 Controller::NetworkMetrics last_metrics_; |
75 | 77 |
76 RTC_DISALLOW_COPY_AND_ASSIGN(AudioNetworkAdaptorImpl); | 78 RTC_DISALLOW_COPY_AND_ASSIGN(AudioNetworkAdaptorImpl); |
77 }; | 79 }; |
78 | 80 |
79 } // namespace webrtc | 81 } // namespace webrtc |
80 | 82 |
81 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_AUDIO_NETWORK_ADAPT
OR_IMPL_H_ | 83 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_AUDIO_NETWORK_ADAPT
OR_IMPL_H_ |
OLD | NEW |