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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 LOG(LS_ERROR) << "Failed to set up send codec state."; | 193 LOG(LS_ERROR) << "Failed to set up send codec state."; |
194 } | 194 } |
195 | 195 |
196 ReconfigureBitrateObserver(stream, new_config); | 196 ReconfigureBitrateObserver(stream, new_config); |
197 stream->config_ = new_config; | 197 stream->config_ = new_config; |
198 } | 198 } |
199 | 199 |
200 void AudioSendStream::Start() { | 200 void AudioSendStream::Start() { |
201 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 201 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
202 if (config_.min_bitrate_bps != -1 && config_.max_bitrate_bps != -1) { | 202 if (config_.min_bitrate_bps != -1 && config_.max_bitrate_bps != -1) { |
| 203 // Audio BWE is enabled |
| 204 transport_->packet_sender()->AccountForAudioPackets(true); |
203 ConfigureBitrateObserver(config_.min_bitrate_bps, config_.max_bitrate_bps); | 205 ConfigureBitrateObserver(config_.min_bitrate_bps, config_.max_bitrate_bps); |
204 } | 206 } |
205 | 207 |
206 ScopedVoEInterface<VoEBase> base(voice_engine()); | 208 ScopedVoEInterface<VoEBase> base(voice_engine()); |
207 int error = base->StartSend(config_.voe_channel_id); | 209 int error = base->StartSend(config_.voe_channel_id); |
208 if (error != 0) { | 210 if (error != 0) { |
209 LOG(LS_ERROR) << "AudioSendStream::Start failed with error: " << error; | 211 LOG(LS_ERROR) << "AudioSendStream::Start failed with error: " << error; |
210 } | 212 } |
211 } | 213 } |
212 | 214 |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 if (rtp_rtcp_module_->RegisterSendPayload(codec) != 0) { | 608 if (rtp_rtcp_module_->RegisterSendPayload(codec) != 0) { |
607 LOG(LS_ERROR) << "RegisterCngPayloadType() failed to register CN to " | 609 LOG(LS_ERROR) << "RegisterCngPayloadType() failed to register CN to " |
608 "RTP/RTCP module"; | 610 "RTP/RTCP module"; |
609 } | 611 } |
610 } | 612 } |
611 } | 613 } |
612 | 614 |
613 | 615 |
614 } // namespace internal | 616 } // namespace internal |
615 } // namespace webrtc | 617 } // namespace webrtc |
OLD | NEW |