OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 } | 124 } |
125 } | 125 } |
126 | 126 |
127 void LogAudioPlayout(uint32_t ssrc) override { | 127 void LogAudioPlayout(uint32_t ssrc) override { |
128 rtc::CritScope lock(&crit_); | 128 rtc::CritScope lock(&crit_); |
129 if (event_log_) { | 129 if (event_log_) { |
130 event_log_->LogAudioPlayout(ssrc); | 130 event_log_->LogAudioPlayout(ssrc); |
131 } | 131 } |
132 } | 132 } |
133 | 133 |
134 void LogBwePacketLossEvent(int32_t bitrate, | 134 void LogLossBasedBweUpdate(int32_t bitrate_bps, |
135 uint8_t fraction_loss, | 135 uint8_t fraction_loss, |
136 int32_t total_packets) override { | 136 int32_t total_packets) override { |
137 rtc::CritScope lock(&crit_); | 137 rtc::CritScope lock(&crit_); |
138 if (event_log_) { | 138 if (event_log_) { |
139 event_log_->LogBwePacketLossEvent(bitrate, fraction_loss, total_packets); | 139 event_log_->LogLossBasedBweUpdate(bitrate_bps, fraction_loss, |
| 140 total_packets); |
140 } | 141 } |
141 } | 142 } |
142 | 143 |
| 144 void LogDelayBasedBweUpdate(int32_t bitrate_bps, |
| 145 BandwidthUsage detector_state) override { |
| 146 rtc::CritScope lock(&crit_); |
| 147 if (event_log_) { |
| 148 event_log_->LogDelayBasedBweUpdate(bitrate_bps, detector_state); |
| 149 } |
| 150 } |
| 151 |
143 void LogAudioNetworkAdaptation( | 152 void LogAudioNetworkAdaptation( |
144 const AudioNetworkAdaptor::EncoderRuntimeConfig& config) override { | 153 const AudioNetworkAdaptor::EncoderRuntimeConfig& config) override { |
145 rtc::CritScope lock(&crit_); | 154 rtc::CritScope lock(&crit_); |
146 if (event_log_) { | 155 if (event_log_) { |
147 event_log_->LogAudioNetworkAdaptation(config); | 156 event_log_->LogAudioNetworkAdaptation(config); |
148 } | 157 } |
149 } | 158 } |
150 | 159 |
151 void SetEventLog(RtcEventLog* event_log) { | 160 void SetEventLog(RtcEventLog* event_log) { |
152 rtc::CritScope lock(&crit_); | 161 rtc::CritScope lock(&crit_); |
(...skipping 3171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3324 int64_t min_rtt = 0; | 3333 int64_t min_rtt = 0; |
3325 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3334 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
3326 0) { | 3335 0) { |
3327 return 0; | 3336 return 0; |
3328 } | 3337 } |
3329 return rtt; | 3338 return rtt; |
3330 } | 3339 } |
3331 | 3340 |
3332 } // namespace voe | 3341 } // namespace voe |
3333 } // namespace webrtc | 3342 } // namespace webrtc |
OLD | NEW |