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

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

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Rename SignalTransportOverheadChanged to UpdateTransportOverhead. 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 | « webrtc/audio/audio_send_stream.h ('k') | webrtc/call.h » ('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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // The amount of audio protection is not exposed by the encoder, hence 261 // The amount of audio protection is not exposed by the encoder, hence
262 // always returning 0. 262 // always returning 0.
263 return 0; 263 return 0;
264 } 264 }
265 265
266 const webrtc::AudioSendStream::Config& AudioSendStream::config() const { 266 const webrtc::AudioSendStream::Config& AudioSendStream::config() const {
267 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 267 RTC_DCHECK(thread_checker_.CalledOnValidThread());
268 return config_; 268 return config_;
269 } 269 }
270 270
271 void AudioSendStream::SetTransportOverhead(int transport_overhead_per_packet) {
272 RTC_DCHECK(thread_checker_.CalledOnValidThread());
273 channel_proxy_->SetTransportOverhead(transport_overhead_per_packet);
274 }
275
271 VoiceEngine* AudioSendStream::voice_engine() const { 276 VoiceEngine* AudioSendStream::voice_engine() const {
272 internal::AudioState* audio_state = 277 internal::AudioState* audio_state =
273 static_cast<internal::AudioState*>(audio_state_.get()); 278 static_cast<internal::AudioState*>(audio_state_.get());
274 VoiceEngine* voice_engine = audio_state->voice_engine(); 279 VoiceEngine* voice_engine = audio_state->voice_engine();
275 RTC_DCHECK(voice_engine); 280 RTC_DCHECK(voice_engine);
276 return voice_engine; 281 return voice_engine;
277 } 282 }
278 283
279 // Apply current codec settings to a single voe::Channel used for sending. 284 // Apply current codec settings to a single voe::Channel used for sending.
280 bool AudioSendStream::SetupSendCodec() { 285 bool AudioSendStream::SetupSendCodec() {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 LOG(LS_WARNING) << "SetVADStatus() failed: " << base->LastError(); 391 LOG(LS_WARNING) << "SetVADStatus() failed: " << base->LastError();
387 return false; 392 return false;
388 } 393 }
389 } 394 }
390 } 395 }
391 return true; 396 return true;
392 } 397 }
393 398
394 } // namespace internal 399 } // namespace internal
395 } // namespace webrtc 400 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream.h ('k') | webrtc/call.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698