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

Unified Diff: webrtc/voice_engine/channel_proxy.cc

Issue 2062193002: Add AudioReceiveStream::SetGain() method and use that in WVoMC::SetOutputVolume(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: misc Created 4 years, 6 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 d16167f9bb15bfff51e0be616531fd938a1c930c..2d4fe556bef3e79e2b6681249307ff4a50d909b2 100644
--- a/webrtc/voice_engine/channel_proxy.cc
+++ b/webrtc/voice_engine/channel_proxy.cc
@@ -182,10 +182,17 @@ bool ChannelProxy::ReceivedRTCPPacket(const uint8_t* packet, size_t length) {
}
const rtc::scoped_refptr<AudioDecoderFactory>&
-ChannelProxy::GetAudioDecoderFactory() const {
+ ChannelProxy::GetAudioDecoderFactory() const {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
return channel()->GetAudioDecoderFactory();
}
+void ChannelProxy::SetChannelOutputVolumeScaling(float scaling) {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ int error = channel()->SetChannelOutputVolumeScaling(scaling);
+ RTC_DCHECK_EQ(0, error);
+}
+
Channel* ChannelProxy::channel() const {
RTC_DCHECK(channel_owner_.channel());
return channel_owner_.channel();
« webrtc/test/mock_voe_channel_proxy.h ('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