| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 // The amount of audio protection is not exposed by the encoder, hence | 302 // The amount of audio protection is not exposed by the encoder, hence |
| 303 // always returning 0. | 303 // always returning 0. |
| 304 return 0; | 304 return 0; |
| 305 } | 305 } |
| 306 | 306 |
| 307 const webrtc::AudioSendStream::Config& AudioSendStream::config() const { | 307 const webrtc::AudioSendStream::Config& AudioSendStream::config() const { |
| 308 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 308 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 309 return config_; | 309 return config_; |
| 310 } | 310 } |
| 311 | 311 |
| 312 void AudioSendStream::SetTransportOverhead( |
| 313 int transport_overhead_per_packet_byte) { |
| 314 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 315 channel_proxy_->SetTransportOverhead(transport_overhead_per_packet_byte); |
| 316 } |
| 317 |
| 312 VoiceEngine* AudioSendStream::voice_engine() const { | 318 VoiceEngine* AudioSendStream::voice_engine() const { |
| 313 internal::AudioState* audio_state = | 319 internal::AudioState* audio_state = |
| 314 static_cast<internal::AudioState*>(audio_state_.get()); | 320 static_cast<internal::AudioState*>(audio_state_.get()); |
| 315 VoiceEngine* voice_engine = audio_state->voice_engine(); | 321 VoiceEngine* voice_engine = audio_state->voice_engine(); |
| 316 RTC_DCHECK(voice_engine); | 322 RTC_DCHECK(voice_engine); |
| 317 return voice_engine; | 323 return voice_engine; |
| 318 } | 324 } |
| 319 | 325 |
| 320 // Apply current codec settings to a single voe::Channel used for sending. | 326 // Apply current codec settings to a single voe::Channel used for sending. |
| 321 bool AudioSendStream::SetupSendCodec() { | 327 bool AudioSendStream::SetupSendCodec() { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 LOG_RTCERR2(SetVADStatus, channel, true, base->LastError()); | 439 LOG_RTCERR2(SetVADStatus, channel, true, base->LastError()); |
| 434 return false; | 440 return false; |
| 435 } | 441 } |
| 436 } | 442 } |
| 437 } | 443 } |
| 438 return true; | 444 return true; |
| 439 } | 445 } |
| 440 | 446 |
| 441 } // namespace internal | 447 } // namespace internal |
| 442 } // namespace webrtc | 448 } // namespace webrtc |
| OLD | NEW |