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:
parent
b8b1417ac1
commit
90bdb3d138
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user