Moves logging of audio effects to when they are enabled

BUG=none
TBR=magjed

Review URL: https://codereview.webrtc.org/1411783011 .

Cr-Commit-Position: refs/heads/master@{#10516}
This commit is contained in:
henrika
2015-11-05 12:44:24 +01:00
parent 85ec2094da
commit d6b9d3353d

View File

@ -208,15 +208,6 @@ class WebRtcAudioEffects {
private WebRtcAudioEffects() {
Logging.d(TAG, "ctor" + WebRtcAudioUtils.getThreadInfo());
for (Descriptor d : AudioEffect.queryEffects()) {
if (effectTypeIsVoIP(d.type) || DEBUG) {
// Only log information for VoIP effects (AEC, AEC and NS).
Logging.d(TAG, "name: " + d.name + ", "
+ "mode: " + d.connectMode + ", "
+ "implementor: " + d.implementor + ", "
+ "UUID: " + d.uuid);
}
}
}
// Call this method to enable or disable the platform AEC. It modifies
@ -282,6 +273,17 @@ class WebRtcAudioEffects {
assertTrue(agc == null);
assertTrue(ns == null);
// Add logging of supported effects but filter out "VoIP effects", i.e.,
// AEC, AEC and NS.
for (Descriptor d : AudioEffect.queryEffects()) {
if (effectTypeIsVoIP(d.type) || DEBUG) {
Logging.d(TAG, "name: " + d.name + ", "
+ "mode: " + d.connectMode + ", "
+ "implementor: " + d.implementor + ", "
+ "UUID: " + d.uuid);
}
}
if (isAcousticEchoCancelerSupported()) {
// Create an AcousticEchoCanceler and attach it to the AudioRecord on
// the specified audio session.