From 0a52c7003da6434019cfe6806311104de57f8c7e Mon Sep 17 00:00:00 2001 From: henrika Date: Tue, 27 Sep 2016 09:35:24 +0200 Subject: [PATCH] THis CL enables possibility to select full-duplex OpenSL ES audio in AppRTCDemo, i.e., it adds support for OpenSL ES for input as well. The user must explicitly select this new mode in the debug UI hence it is not the default selection. There is no separate UI for input and output; instead both are enabled/disabled by the same switch. BUG=webrtc:5925 R=tommi@webrtc.org Review URL: https://codereview.webrtc.org/2366383002 . Cr-Commit-Position: refs/heads/master@{#14390} --- .../java/src/org/webrtc/voiceengine/WebRtcAudioManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 c1a9fa0782..64c9c7c6f8 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 @@ -231,8 +231,8 @@ public class WebRtcAudioManager { // as well. The NDK doc states that: "As of API level 21, lower latency // audio input is supported on select devices. To take advantage of this // feature, first confirm that lower latency output is available". - return false; - // return WebRtcAudioUtils.runningOnLollipopOrHigher() && isLowLatencyOutputSupported(); + return WebRtcAudioUtils.runningOnLollipopOrHigher() && + isLowLatencyOutputSupported(); } // Returns true if the device has professional audio level of functionality