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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 if (bitrate_bps > max_bitrate_bps) | 266 if (bitrate_bps > max_bitrate_bps) |
267 bitrate_bps = max_bitrate_bps; | 267 bitrate_bps = max_bitrate_bps; |
268 | 268 |
269 channel_proxy_->SetBitrate(bitrate_bps); | 269 channel_proxy_->SetBitrate(bitrate_bps); |
270 | 270 |
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 bool AudioSendStream::EnableAudioNetworkAdaptor( |
| 277 const std::string& config_string) { |
| 278 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 279 return channel_proxy_->EnableAudioNetworkAdaptor(config_string); |
| 280 } |
| 281 |
| 282 void AudioSendStream::DisableAudioNetworkAdaptor() { |
| 283 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 284 channel_proxy_->DisableAudioNetworkAdaptor(); |
| 285 } |
| 286 |
| 287 void AudioSendStream::SetReceiverFrameLengthRange(int min_frame_length_ms, |
| 288 int max_frame_length_ms) { |
| 289 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 290 channel_proxy_->SetReceiverFrameLengthRange(min_frame_length_ms, |
| 291 max_frame_length_ms); |
| 292 } |
| 293 |
276 const webrtc::AudioSendStream::Config& AudioSendStream::config() const { | 294 const webrtc::AudioSendStream::Config& AudioSendStream::config() const { |
277 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 295 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
278 return config_; | 296 return config_; |
279 } | 297 } |
280 | 298 |
281 VoiceEngine* AudioSendStream::voice_engine() const { | 299 VoiceEngine* AudioSendStream::voice_engine() const { |
282 internal::AudioState* audio_state = | 300 internal::AudioState* audio_state = |
283 static_cast<internal::AudioState*>(audio_state_.get()); | 301 static_cast<internal::AudioState*>(audio_state_.get()); |
284 VoiceEngine* voice_engine = audio_state->voice_engine(); | 302 VoiceEngine* voice_engine = audio_state->voice_engine(); |
285 RTC_DCHECK(voice_engine); | 303 RTC_DCHECK(voice_engine); |
286 return voice_engine; | 304 return voice_engine; |
287 } | 305 } |
288 } // namespace internal | 306 } // namespace internal |
289 } // namespace webrtc | 307 } // namespace webrtc |
OLD | NEW |