Index: webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java |
diff --git a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java |
index 19ee09a46678bef7a29161d344a8b0135230140d..fb0516fa0699d9a397b8e686f897a2702b04798b 100644 |
--- a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java |
+++ b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java |
@@ -192,7 +192,9 @@ public class WebRtcAudioManager { |
channels = CHANNELS; |
sampleRate = getNativeOutputSampleRate(); |
hardwareAEC = isAcousticEchoCancelerSupported(); |
- hardwareAGC = isAutomaticGainControlSupported(); |
+ // TODO(henrika): use of hardware AGC is no longer supported. Currently |
+ // hardcoded to false. To be removed. |
+ hardwareAGC = false; |
hardwareNS = isNoiseSuppressorSupported(); |
lowLatencyOutput = isLowLatencyOutputSupported(); |
lowLatencyInput = isLowLatencyInputSupported(); |
@@ -278,7 +280,7 @@ public class WebRtcAudioManager { |
return framesPerBuffer == null ? DEFAULT_FRAME_PER_BUFFER : Integer.parseInt(framesPerBuffer); |
} |
- // Returns true if the device supports an audio effect (AEC, AGC or NS). |
+ // Returns true if the device supports an audio effect (AEC or NS). |
// Four conditions must be fulfilled if functions are to return true: |
// 1) the platform must support the built-in (HW) effect, |
// 2) explicit use (override) of a WebRTC based version must not be set, |
@@ -287,9 +289,6 @@ public class WebRtcAudioManager { |
private static boolean isAcousticEchoCancelerSupported() { |
return WebRtcAudioEffects.canUseAcousticEchoCanceler(); |
} |
- private static boolean isAutomaticGainControlSupported() { |
- return WebRtcAudioEffects.canUseAutomaticGainControl(); |
- } |
private static boolean isNoiseSuppressorSupported() { |
return WebRtcAudioEffects.canUseNoiseSuppressor(); |
} |