Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Side by Side Diff: webrtc/audio/audio_receive_stream.cc

Issue 2774623006: Let PacketRouter separate send and receive modules. (Closed)
Patch Set: Send feedback messages on a send module, if possible. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream_unittest.cc » ('j') | webrtc/modules/pacing/packet_router.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698