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