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

Unified Diff: webrtc/voice_engine/channel_proxy.cc

Issue 1827263002: Early initialize recording on the ADM from WebRtcVoiceMediaChannel. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: set upstream to 1830213002 Created 4 years, 9 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
Index: webrtc/voice_engine/channel_proxy.cc
diff --git a/webrtc/voice_engine/channel_proxy.cc b/webrtc/voice_engine/channel_proxy.cc
index 10c88212024aa2ea911c09ccb97bcb2fd15ca65e..d577fb4ea2df8dd2f30859893e1409ef23b55d59 100644
--- a/webrtc/voice_engine/channel_proxy.cc
+++ b/webrtc/voice_engine/channel_proxy.cc
@@ -158,6 +158,12 @@ void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) {
channel()->SetSink(std::move(sink));
}
+void ChannelProxy::StartSend() {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ int32_t error = channel()->StartSend();
+ RTC_DCHECK_EQ(0, error);
Taylor Brandstetter 2016/03/29 01:05:38 Is there a reason to switch from logging an error
the sun 2016/03/31 10:49:47 Yes, there is a reason. AFAICT StartSend() can nev
Taylor Brandstetter 2016/03/31 18:11:26 If it should never fail, it seems like it would ma
the sun 2016/04/01 09:07:46 voe::Channel is still accessed via the legacy VoE
+}
+
Channel* ChannelProxy::channel() const {
RTC_DCHECK(channel_owner_.channel());
return channel_owner_.channel();
« webrtc/media/engine/webrtcvoiceengine.cc ('K') | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698