Chromium Code Reviews| 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; |