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

Side by Side Diff: webrtc/audio/audio_receive_stream.cc

Issue 2455013003: Clean up abs-send-time for audio. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream_unittest.cc » ('j') | 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 channel_proxy_->GetAudioDecoderFactory()); 111 channel_proxy_->GetAudioDecoderFactory());
112 112
113 channel_proxy_->RegisterExternalTransport(config.rtcp_send_transport); 113 channel_proxy_->RegisterExternalTransport(config.rtcp_send_transport);
114 114
115 for (const auto& extension : config.rtp.extensions) { 115 for (const auto& extension : config.rtp.extensions) {
116 if (extension.uri == RtpExtension::kAudioLevelUri) { 116 if (extension.uri == RtpExtension::kAudioLevelUri) {
117 channel_proxy_->SetReceiveAudioLevelIndicationStatus(true, extension.id); 117 channel_proxy_->SetReceiveAudioLevelIndicationStatus(true, extension.id);
118 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension( 118 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension(
119 kRtpExtensionAudioLevel, extension.id); 119 kRtpExtensionAudioLevel, extension.id);
120 RTC_DCHECK(registered); 120 RTC_DCHECK(registered);
121 } else if (extension.uri == RtpExtension::kAbsSendTimeUri) {
122 channel_proxy_->SetReceiveAbsoluteSenderTimeStatus(true, extension.id);
123 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension(
124 kRtpExtensionAbsoluteSendTime, extension.id);
125 RTC_DCHECK(registered);
126 } else if (extension.uri == RtpExtension::kTransportSequenceNumberUri) { 121 } else if (extension.uri == RtpExtension::kTransportSequenceNumberUri) {
127 channel_proxy_->EnableReceiveTransportSequenceNumber(extension.id); 122 channel_proxy_->EnableReceiveTransportSequenceNumber(extension.id);
128 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension( 123 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension(
129 kRtpExtensionTransportSequenceNumber, extension.id); 124 kRtpExtensionTransportSequenceNumber, extension.id);
130 RTC_DCHECK(registered); 125 RTC_DCHECK(registered);
131 } else { 126 } else {
132 RTC_NOTREACHED() << "Unsupported RTP extension."; 127 RTC_NOTREACHED() << "Unsupported RTP extension.";
133 } 128 }
134 } 129 }
135 // Configure bandwidth estimation. 130 // Configure bandwidth estimation.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 283
289 VoiceEngine* AudioReceiveStream::voice_engine() const { 284 VoiceEngine* AudioReceiveStream::voice_engine() const {
290 internal::AudioState* audio_state = 285 internal::AudioState* audio_state =
291 static_cast<internal::AudioState*>(audio_state_.get()); 286 static_cast<internal::AudioState*>(audio_state_.get());
292 VoiceEngine* voice_engine = audio_state->voice_engine(); 287 VoiceEngine* voice_engine = audio_state->voice_engine();
293 RTC_DCHECK(voice_engine); 288 RTC_DCHECK(voice_engine);
294 return voice_engine; 289 return voice_engine;
295 } 290 }
296 } // namespace internal 291 } // namespace internal
297 } // namespace webrtc 292 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698