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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 int64_t capture_time_ms, | 315 int64_t capture_time_ms, |
316 size_t bytes, | 316 size_t bytes, |
317 bool retransmission) override { | 317 bool retransmission) override { |
318 rtc::CritScope lock(&crit_); | 318 rtc::CritScope lock(&crit_); |
319 if (rtp_packet_sender_) { | 319 if (rtp_packet_sender_) { |
320 rtp_packet_sender_->InsertPacket(priority, ssrc, sequence_number, | 320 rtp_packet_sender_->InsertPacket(priority, ssrc, sequence_number, |
321 capture_time_ms, bytes, retransmission); | 321 capture_time_ms, bytes, retransmission); |
322 } | 322 } |
323 } | 323 } |
324 | 324 |
| 325 void SetAccountForAudioPackets(bool account_for_audio) override { |
| 326 RTC_NOTREACHED(); |
| 327 } |
| 328 |
325 private: | 329 private: |
326 rtc::ThreadChecker thread_checker_; | 330 rtc::ThreadChecker thread_checker_; |
327 rtc::CriticalSection crit_; | 331 rtc::CriticalSection crit_; |
328 RtpPacketSender* rtp_packet_sender_ GUARDED_BY(&crit_); | 332 RtpPacketSender* rtp_packet_sender_ GUARDED_BY(&crit_); |
329 }; | 333 }; |
330 | 334 |
331 class VoERtcpObserver : public RtcpBandwidthObserver { | 335 class VoERtcpObserver : public RtcpBandwidthObserver { |
332 public: | 336 public: |
333 explicit VoERtcpObserver(Channel* owner) | 337 explicit VoERtcpObserver(Channel* owner) |
334 : owner_(owner), bandwidth_observer_(nullptr) {} | 338 : owner_(owner), bandwidth_observer_(nullptr) {} |
(...skipping 2830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3165 int64_t min_rtt = 0; | 3169 int64_t min_rtt = 0; |
3166 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3170 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
3167 0) { | 3171 0) { |
3168 return 0; | 3172 return 0; |
3169 } | 3173 } |
3170 return rtt; | 3174 return rtt; |
3171 } | 3175 } |
3172 | 3176 |
3173 } // namespace voe | 3177 } // namespace voe |
3174 } // namespace webrtc | 3178 } // namespace webrtc |
OLD | NEW |