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}
This commit is contained in:
mellem 2017-05-08 10:21:30 -07:00 committed by Commit bot
parent b8b1417ac1
commit 90bdb3d138

View File

@ -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();
}