| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "webrtc/voice_engine/utility.h" | 42 #include "webrtc/voice_engine/utility.h" |
| 43 | 43 |
| 44 namespace webrtc { | 44 namespace webrtc { |
| 45 namespace voe { | 45 namespace voe { |
| 46 | 46 |
| 47 namespace { | 47 namespace { |
| 48 | 48 |
| 49 bool RegisterReceiveCodec(std::unique_ptr<AudioCodingModule>* acm, | 49 bool RegisterReceiveCodec(std::unique_ptr<AudioCodingModule>* acm, |
| 50 acm2::RentACodec* rac, | 50 acm2::RentACodec* rac, |
| 51 const CodecInst& ci) { | 51 const CodecInst& ci) { |
| 52 const int result = | 52 const int result = (*acm)->RegisterReceiveCodec( |
| 53 (*acm)->RegisterReceiveCodec(ci, [&] { return rac->RentIsacDecoder(); }); | 53 ci, [&] { return rac->RentIsacDecoder(ci.plfreq); }); |
| 54 return result == 0; | 54 return result == 0; |
| 55 } | 55 } |
| 56 | 56 |
| 57 } // namespace | 57 } // namespace |
| 58 | 58 |
| 59 const int kTelephoneEventAttenuationdB = 10; | 59 const int kTelephoneEventAttenuationdB = 10; |
| 60 | 60 |
| 61 class TransportFeedbackProxy : public TransportFeedbackObserver { | 61 class TransportFeedbackProxy : public TransportFeedbackObserver { |
| 62 public: | 62 public: |
| 63 TransportFeedbackProxy() : feedback_observer_(nullptr) { | 63 TransportFeedbackProxy() : feedback_observer_(nullptr) { |
| (...skipping 3513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3577 int64_t min_rtt = 0; | 3577 int64_t min_rtt = 0; |
| 3578 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3578 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
| 3579 0) { | 3579 0) { |
| 3580 return 0; | 3580 return 0; |
| 3581 } | 3581 } |
| 3582 return rtt; | 3582 return rtt; |
| 3583 } | 3583 } |
| 3584 | 3584 |
| 3585 } // namespace voe | 3585 } // namespace voe |
| 3586 } // namespace webrtc | 3586 } // namespace webrtc |
| OLD | NEW |