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

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: bad test 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
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/channel_proxy.cc
diff --git a/webrtc/voice_engine/channel_proxy.cc b/webrtc/voice_engine/channel_proxy.cc
index 46288e9c6d3ab6ec19a25bd7f7d640b6d7c970ad..f60728aadc96b070d65700c6a1c9dee6be476bea 100644
--- a/webrtc/voice_engine/channel_proxy.cc
+++ b/webrtc/voice_engine/channel_proxy.cc
@@ -193,10 +193,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();
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698