| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 void LogBwePacketLossEvent(int32_t bitrate, | 134 void LogBwePacketLossEvent(int32_t bitrate, |
| 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_->LogBwePacketLossEvent(bitrate, fraction_loss, total_packets); |
| 140 } | 140 } |
| 141 } | 141 } |
| 142 | 142 |
| 143 void LogAudioNetworkAdaptation( |
| 144 const AudioNetworkAdaptor::EncoderRuntimeConfig& config) override { |
| 145 rtc::CritScope lock(&crit_); |
| 146 if (event_log_) { |
| 147 event_log_->LogAudioNetworkAdaptation(config); |
| 148 } |
| 149 } |
| 150 |
| 143 void SetEventLog(RtcEventLog* event_log) { | 151 void SetEventLog(RtcEventLog* event_log) { |
| 144 rtc::CritScope lock(&crit_); | 152 rtc::CritScope lock(&crit_); |
| 145 event_log_ = event_log; | 153 event_log_ = event_log; |
| 146 } | 154 } |
| 147 | 155 |
| 148 private: | 156 private: |
| 149 rtc::CriticalSection crit_; | 157 rtc::CriticalSection crit_; |
| 150 RtcEventLog* event_log_ GUARDED_BY(crit_); | 158 RtcEventLog* event_log_ GUARDED_BY(crit_); |
| 151 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy); | 159 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy); |
| 152 }; | 160 }; |
| (...skipping 3142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3295 int64_t min_rtt = 0; | 3303 int64_t min_rtt = 0; |
| 3296 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3304 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
| 3297 0) { | 3305 0) { |
| 3298 return 0; | 3306 return 0; |
| 3299 } | 3307 } |
| 3300 return rtt; | 3308 return rtt; |
| 3301 } | 3309 } |
| 3302 | 3310 |
| 3303 } // namespace voe | 3311 } // namespace voe |
| 3304 } // namespace webrtc | 3312 } // namespace webrtc |
| OLD | NEW |