Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: webrtc/voice_engine/channel.cc

Issue 2553413002: Pass event log to ANA. (Closed)
Patch Set: Rebased Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after
1525 } 1525 }
1526 }); 1526 });
1527 return success; 1527 return success;
1528 } 1528 }
1529 1529
1530 bool Channel::EnableAudioNetworkAdaptor(const std::string& config_string) { 1530 bool Channel::EnableAudioNetworkAdaptor(const std::string& config_string) {
1531 bool success = false; 1531 bool success = false;
1532 audio_coding_->ModifyEncoder([&](std::unique_ptr<AudioEncoder>* encoder) { 1532 audio_coding_->ModifyEncoder([&](std::unique_ptr<AudioEncoder>* encoder) {
1533 if (*encoder) { 1533 if (*encoder) {
1534 success = (*encoder)->EnableAudioNetworkAdaptor( 1534 success = (*encoder)->EnableAudioNetworkAdaptor(
1535 config_string, Clock::GetRealTimeClock()); 1535 config_string, event_log_proxy_.get(), Clock::GetRealTimeClock());
1536 } 1536 }
1537 }); 1537 });
1538 return success; 1538 return success;
1539 } 1539 }
1540 1540
1541 void Channel::DisableAudioNetworkAdaptor() { 1541 void Channel::DisableAudioNetworkAdaptor() {
1542 audio_coding_->ModifyEncoder([&](std::unique_ptr<AudioEncoder>* encoder) { 1542 audio_coding_->ModifyEncoder([&](std::unique_ptr<AudioEncoder>* encoder) {
1543 if (*encoder) 1543 if (*encoder)
1544 (*encoder)->DisableAudioNetworkAdaptor(); 1544 (*encoder)->DisableAudioNetworkAdaptor();
1545 }); 1545 });
(...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after
3277 int64_t min_rtt = 0; 3277 int64_t min_rtt = 0;
3278 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != 3278 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) !=
3279 0) { 3279 0) {
3280 return 0; 3280 return 0;
3281 } 3281 }
3282 return rtt; 3282 return rtt;
3283 } 3283 }
3284 3284
3285 } // namespace voe 3285 } // namespace voe
3286 } // namespace webrtc 3286 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698