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) { | |
the sun
2016/10/20 08:56:46
RTC_DCHECK(thread_checker_.CalledOnValidThread());
michaelt
2016/10/20 09:38:05
Done.
| |
283 channel_proxy_->SetTransportOverhead(transport_overhead_per_packet_byte); | |
284 } | |
285 | |
281 VoiceEngine* AudioSendStream::voice_engine() const { | 286 VoiceEngine* AudioSendStream::voice_engine() const { |
282 internal::AudioState* audio_state = | 287 internal::AudioState* audio_state = |
283 static_cast<internal::AudioState*>(audio_state_.get()); | 288 static_cast<internal::AudioState*>(audio_state_.get()); |
284 VoiceEngine* voice_engine = audio_state->voice_engine(); | 289 VoiceEngine* voice_engine = audio_state->voice_engine(); |
285 RTC_DCHECK(voice_engine); | 290 RTC_DCHECK(voice_engine); |
286 return voice_engine; | 291 return voice_engine; |
287 } | 292 } |
288 } // namespace internal | 293 } // namespace internal |
289 } // namespace webrtc | 294 } // namespace webrtc |
OLD | NEW |