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

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

Issue 2061193002: Remove audio/video distinction for probe packets. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + feedback Created 4 years, 6 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 | « 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Only forward if the parsed header has one of the headers necessary for 247 // Only forward if the parsed header has one of the headers necessary for
248 // bandwidth estimation. RTP timestamps has different rates for audio and 248 // bandwidth estimation. RTP timestamps has different rates for audio and
249 // video and shouldn't be mixed. 249 // video and shouldn't be mixed.
250 if (remote_bitrate_estimator_ && 250 if (remote_bitrate_estimator_ &&
251 header.extension.hasTransportSequenceNumber) { 251 header.extension.hasTransportSequenceNumber) {
252 int64_t arrival_time_ms = rtc::TimeMillis(); 252 int64_t arrival_time_ms = rtc::TimeMillis();
253 if (packet_time.timestamp >= 0) 253 if (packet_time.timestamp >= 0)
254 arrival_time_ms = (packet_time.timestamp + 500) / 1000; 254 arrival_time_ms = (packet_time.timestamp + 500) / 1000;
255 size_t payload_size = length - header.headerLength; 255 size_t payload_size = length - header.headerLength;
256 remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size, 256 remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size,
257 header, false); 257 header);
258 } 258 }
259 259
260 return channel_proxy_->ReceivedRTPPacket(packet, length, packet_time); 260 return channel_proxy_->ReceivedRTPPacket(packet, length, packet_time);
261 } 261 }
262 262
263 VoiceEngine* AudioReceiveStream::voice_engine() const { 263 VoiceEngine* AudioReceiveStream::voice_engine() const {
264 internal::AudioState* audio_state = 264 internal::AudioState* audio_state =
265 static_cast<internal::AudioState*>(audio_state_.get()); 265 static_cast<internal::AudioState*>(audio_state_.get());
266 VoiceEngine* voice_engine = audio_state->voice_engine(); 266 VoiceEngine* voice_engine = audio_state->voice_engine();
267 RTC_DCHECK(voice_engine); 267 RTC_DCHECK(voice_engine);
268 return voice_engine; 268 return voice_engine;
269 } 269 }
270 } // namespace internal 270 } // namespace internal
271 } // namespace webrtc 271 } // 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