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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.cc

Issue 2455013003: Clean up abs-send-time for audio. (Closed)
Patch Set: Fix tests. Created 4 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); 945 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread());
946 return recv_codecs_; 946 return recv_codecs_;
947 } 947 }
948 948
949 RtpCapabilities WebRtcVoiceEngine::GetCapabilities() const { 949 RtpCapabilities WebRtcVoiceEngine::GetCapabilities() const {
950 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); 950 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread());
951 RtpCapabilities capabilities; 951 RtpCapabilities capabilities;
952 capabilities.header_extensions.push_back( 952 capabilities.header_extensions.push_back(
953 webrtc::RtpExtension(webrtc::RtpExtension::kAudioLevelUri, 953 webrtc::RtpExtension(webrtc::RtpExtension::kAudioLevelUri,
954 webrtc::RtpExtension::kAudioLevelDefaultId)); 954 webrtc::RtpExtension::kAudioLevelDefaultId));
955 capabilities.header_extensions.push_back(
956 webrtc::RtpExtension(webrtc::RtpExtension::kAbsSendTimeUri,
957 webrtc::RtpExtension::kAbsSendTimeDefaultId));
958 if (webrtc::field_trial::FindFullName("WebRTC-Audio-SendSideBwe") == 955 if (webrtc::field_trial::FindFullName("WebRTC-Audio-SendSideBwe") ==
959 "Enabled") { 956 "Enabled") {
960 capabilities.header_extensions.push_back(webrtc::RtpExtension( 957 capabilities.header_extensions.push_back(webrtc::RtpExtension(
961 webrtc::RtpExtension::kTransportSequenceNumberUri, 958 webrtc::RtpExtension::kTransportSequenceNumberUri,
962 webrtc::RtpExtension::kTransportSequenceNumberDefaultId)); 959 webrtc::RtpExtension::kTransportSequenceNumberDefaultId));
963 } 960 }
964 return capabilities; 961 return capabilities;
965 } 962 }
966 963
967 int WebRtcVoiceEngine::GetLastEngineError() { 964 int WebRtcVoiceEngine::GetLastEngineError() {
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
2512 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 2509 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
2513 const auto it = send_streams_.find(ssrc); 2510 const auto it = send_streams_.find(ssrc);
2514 if (it != send_streams_.end()) { 2511 if (it != send_streams_.end()) {
2515 return it->second->channel(); 2512 return it->second->channel();
2516 } 2513 }
2517 return -1; 2514 return -1;
2518 } 2515 }
2519 } // namespace cricket 2516 } // namespace cricket
2520 2517
2521 #endif // HAVE_WEBRTC_VOICE 2518 #endif // HAVE_WEBRTC_VOICE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698