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(); |