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

Unified Diff: webrtc/voice_engine/channel_proxy.cc

Issue 2721003002: Remove usage of VoEVolumeControl from WVoE and Audio[Send|Receive]Stream. (Closed)
Patch Set: Created 3 years, 10 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 5538d9ee9e026255c25f2198de2373fe056b3326..ca1d3596c888191dbb4a04b99427080d7220f855 100644
--- a/webrtc/voice_engine/channel_proxy.cc
+++ b/webrtc/voice_engine/channel_proxy.cc
@@ -128,6 +128,14 @@ AudioDecodingCallStats ChannelProxy::GetDecodingCallStatistics() const {
return stats;
}
+int32_t ChannelProxy::GetSpeechOutputLevel() const {
+ RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
+ uint32_t level = 0;
kwiberg-webrtc 2017/02/28 13:59:18 Why initialize?
the sun 2017/03/02 00:36:25 Variables should always be initialized, unless the
kwiberg-webrtc 2017/03/02 02:37:37 On the contrary, I'd argue that the call below is
+ int error = channel()->GetSpeechOutputLevel(level);
kwiberg-webrtc 2017/02/28 13:59:18 const?
the sun 2017/03/02 00:36:25 For error? No.
+ RTC_DCHECK_EQ(0, error);
+ return static_cast<int32_t>(level);
+}
+
int32_t ChannelProxy::GetSpeechOutputLevelFullRange() const {
RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
uint32_t level = 0;

Powered by Google App Engine
This is Rietveld 408576698