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

Unified Diff: webrtc/audio/audio_receive_stream.cc

Issue 2206223002: Removed calls to VoE::SetPlayout() from WebRTCVoiceEngine. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated comments in test. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/media/base/fakemediaengine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/audio_receive_stream.cc
diff --git a/webrtc/audio/audio_receive_stream.cc b/webrtc/audio/audio_receive_stream.cc
index 0a2bc2b4c6a432b899159ea2b9f7396010ac2a26..ca2c08b34f57e733383aa0ac005fd1977acd2cd6 100644
--- a/webrtc/audio/audio_receive_stream.cc
+++ b/webrtc/audio/audio_receive_stream.cc
@@ -154,10 +154,17 @@ AudioReceiveStream::~AudioReceiveStream() {
void AudioReceiveStream::Start() {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ ScopedVoEInterface<VoEBase> base(voice_engine());
+ int error = base->StartPlayout(config_.voe_channel_id);
+ if (error != 0) {
+ LOG(LS_ERROR) << "AudioReceiveStream::Start failed with error: " << error;
+ }
}
void AudioReceiveStream::Stop() {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ ScopedVoEInterface<VoEBase> base(voice_engine());
+ base->StopPlayout(config_.voe_channel_id);
}
webrtc::AudioReceiveStream::Stats AudioReceiveStream::GetStats() const {
« no previous file with comments | « no previous file | webrtc/media/base/fakemediaengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698