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 { |