From 90bdb3d138eaa10627c156b5487ffb4397f48359 Mon Sep 17 00:00:00 2001 From: mellem Date: Mon, 8 May 2017 10:21:30 -0700 Subject: [PATCH] Make WebRtcAudioEffects and its create method public. This allows it to be reused with Android AudioRecords created outside WebRtcAudioRecord. WebRtcAudioEffects provides useful methods for enabling hardware effects (such as echo cancellation) only on appropriate devices. It also allows some control of these effects through WebRtcAudioUtils. BUG=webrtc:7448 Review-Url: https://codereview.webrtc.org/2786603004 Cr-Commit-Position: refs/heads/master@{#18053} --- .../java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java index 604cdb0d20..90a48d3bc2 100644 --- a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java +++ b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java @@ -25,7 +25,7 @@ import org.webrtc.Logging; // effects are: AcousticEchoCanceler (AEC) and NoiseSuppressor (NS). // Calling enable() will active all effects that are // supported by the device if the corresponding |shouldEnableXXX| member is set. -class WebRtcAudioEffects { +public class WebRtcAudioEffects { private static final boolean DEBUG = false; private static final String TAG = "WebRtcAudioEffects"; @@ -150,7 +150,7 @@ class WebRtcAudioEffects { return canUseNoiseSuppressor; } - static WebRtcAudioEffects create() { + public static WebRtcAudioEffects create() { return new WebRtcAudioEffects(); }