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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // The amount of audio protection is not exposed by the encoder, hence | 271 // The amount of audio protection is not exposed by the encoder, hence |
272 // always returning 0. | 272 // always returning 0. |
273 return 0; | 273 return 0; |
274 } | 274 } |
275 | 275 |
276 const webrtc::AudioSendStream::Config& AudioSendStream::config() const { | 276 const webrtc::AudioSendStream::Config& AudioSendStream::config() const { |
277 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 277 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
278 return config_; | 278 return config_; |
279 } | 279 } |
280 | 280 |
| 281 void AudioSendStream::SetTransportOverhead( |
| 282 int transport_overhead_per_packet_byte) { |
| 283 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 284 channel_proxy_->SetTransportOverhead(transport_overhead_per_packet_byte); |
| 285 } |
| 286 |
281 VoiceEngine* AudioSendStream::voice_engine() const { | 287 VoiceEngine* AudioSendStream::voice_engine() const { |
282 internal::AudioState* audio_state = | 288 internal::AudioState* audio_state = |
283 static_cast<internal::AudioState*>(audio_state_.get()); | 289 static_cast<internal::AudioState*>(audio_state_.get()); |
284 VoiceEngine* voice_engine = audio_state->voice_engine(); | 290 VoiceEngine* voice_engine = audio_state->voice_engine(); |
285 RTC_DCHECK(voice_engine); | 291 RTC_DCHECK(voice_engine); |
286 return voice_engine; | 292 return voice_engine; |
287 } | 293 } |
288 } // namespace internal | 294 } // namespace internal |
289 } // namespace webrtc | 295 } // namespace webrtc |
OLD | NEW |