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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 | 114 |
115 AudioReceiveStream::~AudioReceiveStream() { | 115 AudioReceiveStream::~AudioReceiveStream() { |
116 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 116 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
117 LOG(LS_INFO) << "~AudioReceiveStream: " << config_.ToString(); | 117 LOG(LS_INFO) << "~AudioReceiveStream: " << config_.ToString(); |
118 if (playing_) { | 118 if (playing_) { |
119 Stop(); | 119 Stop(); |
120 } | 120 } |
121 channel_proxy_->DisassociateSendChannel(); | 121 channel_proxy_->DisassociateSendChannel(); |
122 channel_proxy_->DeRegisterExternalTransport(); | 122 channel_proxy_->DeRegisterExternalTransport(); |
123 channel_proxy_->ResetCongestionControlObjects(); | 123 channel_proxy_->ResetReceiverCongestionControlObjects(); |
124 channel_proxy_->SetRtcEventLog(nullptr); | 124 channel_proxy_->SetRtcEventLog(nullptr); |
125 } | 125 } |
126 | 126 |
127 void AudioReceiveStream::Start() { | 127 void AudioReceiveStream::Start() { |
128 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 128 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
129 if (playing_) { | 129 if (playing_) { |
130 return; | 130 return; |
131 } | 131 } |
132 | 132 |
133 int error = SetVoiceEnginePlayout(true); | 133 int error = SetVoiceEnginePlayout(true); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 int AudioReceiveStream::SetVoiceEnginePlayout(bool playout) { | 331 int AudioReceiveStream::SetVoiceEnginePlayout(bool playout) { |
332 ScopedVoEInterface<VoEBase> base(voice_engine()); | 332 ScopedVoEInterface<VoEBase> base(voice_engine()); |
333 if (playout) { | 333 if (playout) { |
334 return base->StartPlayout(config_.voe_channel_id); | 334 return base->StartPlayout(config_.voe_channel_id); |
335 } else { | 335 } else { |
336 return base->StopPlayout(config_.voe_channel_id); | 336 return base->StopPlayout(config_.voe_channel_id); |
337 } | 337 } |
338 } | 338 } |
339 } // namespace internal | 339 } // namespace internal |
340 } // namespace webrtc | 340 } // namespace webrtc |
OLD | NEW |