Index: webrtc/voice_engine/audio_level.cc |
diff --git a/webrtc/voice_engine/audio_level.cc b/webrtc/voice_engine/audio_level.cc |
index b2f4df4da83d0a7a14729b582cf400210f37c124..27a7dde1b2b25c2faefa1aa6a8d6641c07776d37 100644 |
--- a/webrtc/voice_engine/audio_level.cc |
+++ b/webrtc/voice_engine/audio_level.cc |
@@ -50,9 +50,10 @@ void AudioLevel::Clear() { |
void AudioLevel::ComputeLevel(const AudioFrame& audioFrame) { |
// Check speech level (works for 2 channels as well) |
- int16_t abs_value = WebRtcSpl_MaxAbsValueW16( |
- audioFrame.data_, |
- audioFrame.samples_per_channel_ * audioFrame.num_channels_); |
+ int16_t abs_value = audioFrame.muted() ? 0 : |
+ WebRtcSpl_MaxAbsValueW16( |
+ audioFrame.data(), |
+ audioFrame.samples_per_channel_ * audioFrame.num_channels_); |
// Protect member access using a lock since this method is called on a |
// dedicated audio thread in the RecordedDataIsAvailable() callback. |