OLD | NEW |
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 Loading... |
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 279 |
285 VoiceEngine* AudioReceiveStream::voice_engine() const { | 280 VoiceEngine* AudioReceiveStream::voice_engine() const { |
286 internal::AudioState* audio_state = | 281 internal::AudioState* audio_state = |
287 static_cast<internal::AudioState*>(audio_state_.get()); | 282 static_cast<internal::AudioState*>(audio_state_.get()); |
288 VoiceEngine* voice_engine = audio_state->voice_engine(); | 283 VoiceEngine* voice_engine = audio_state->voice_engine(); |
289 RTC_DCHECK(voice_engine); | 284 RTC_DCHECK(voice_engine); |
290 return voice_engine; | 285 return voice_engine; |
291 } | 286 } |
292 } // namespace internal | 287 } // namespace internal |
293 } // namespace webrtc | 288 } // namespace webrtc |
OLD | NEW |