| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 } | 1381 } |
| 1382 } | 1382 } |
| 1383 | 1383 |
| 1384 void RecreateAudioSendStream() { | 1384 void RecreateAudioSendStream() { |
| 1385 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 1385 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 1386 if (stream_) { | 1386 if (stream_) { |
| 1387 call_->DestroyAudioSendStream(stream_); | 1387 call_->DestroyAudioSendStream(stream_); |
| 1388 stream_ = nullptr; | 1388 stream_ = nullptr; |
| 1389 } | 1389 } |
| 1390 RTC_DCHECK(!stream_); | 1390 RTC_DCHECK(!stream_); |
| 1391 if (webrtc::field_trial::FindFullName("WebRTC-AdaptAudioBitrate") == | 1391 if (webrtc::field_trial::FindFullName("WebRTC-Audio-SendSideBwe") == |
| 1392 "Enabled") { | 1392 "Enabled") { |
| 1393 // TODO(mflodman): Keep testing this and set proper values. | 1393 // TODO(mflodman): Keep testing this and set proper values. |
| 1394 // Note: This is an early experiment currently only supported by Opus. | 1394 // Note: This is an early experiment currently only supported by Opus. |
| 1395 config_.min_bitrate_bps = kOpusMinBitrateBps; | 1395 config_.min_bitrate_bps = kOpusMinBitrateBps; |
| 1396 config_.max_bitrate_bps = kOpusBitrateFbBps; | 1396 config_.max_bitrate_bps = kOpusBitrateFbBps; |
| 1397 } | 1397 } |
| 1398 stream_ = call_->CreateAudioSendStream(config_); | 1398 stream_ = call_->CreateAudioSendStream(config_); |
| 1399 RTC_CHECK(stream_); | 1399 RTC_CHECK(stream_); |
| 1400 UpdateSendState(); | 1400 UpdateSendState(); |
| 1401 } | 1401 } |
| (...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2570 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 2570 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 2571 const auto it = send_streams_.find(ssrc); | 2571 const auto it = send_streams_.find(ssrc); |
| 2572 if (it != send_streams_.end()) { | 2572 if (it != send_streams_.end()) { |
| 2573 return it->second->channel(); | 2573 return it->second->channel(); |
| 2574 } | 2574 } |
| 2575 return -1; | 2575 return -1; |
| 2576 } | 2576 } |
| 2577 } // namespace cricket | 2577 } // namespace cricket |
| 2578 | 2578 |
| 2579 #endif // HAVE_WEBRTC_VOICE | 2579 #endif // HAVE_WEBRTC_VOICE |
| OLD | NEW |