Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: webrtc/voice_engine/voe_audio_processing_impl.cc

Issue 1347353004: Reduce LS_INFO spam from voice_engine/. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/voice_engine/transmit_mixer.cc ('k') | webrtc/voice_engine/voe_codec_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/voe_audio_processing_impl.cc
diff --git a/webrtc/voice_engine/voe_audio_processing_impl.cc b/webrtc/voice_engine/voe_audio_processing_impl.cc
index 7569c7544e4d1b125107b44e7b3733d9d2447c27..bbc3f0d3caf8db5a88b9c2f18db05dbae88725c2 100644
--- a/webrtc/voice_engine/voe_audio_processing_impl.cc
+++ b/webrtc/voice_engine/voe_audio_processing_impl.cc
@@ -124,8 +124,6 @@ int VoEAudioProcessingImpl::SetNsStatus(bool enable, NsModes mode) {
}
int VoEAudioProcessingImpl::GetNsStatus(bool& enabled, NsModes& mode) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetNsStatus(enabled=?, mode=?)");
#ifdef WEBRTC_VOICE_ENGINE_NR
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -150,9 +148,6 @@ int VoEAudioProcessingImpl::GetNsStatus(bool& enabled, NsModes& mode) {
mode = kNsVeryHighSuppression;
break;
}
-
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetNsStatus() => enabled=% d, mode=%d", enabled, mode);
return 0;
#else
_shared->SetLastError(VE_FUNC_NOT_SUPPORTED, kTraceError,
@@ -228,8 +223,6 @@ int VoEAudioProcessingImpl::SetAgcStatus(bool enable, AgcModes mode) {
}
int VoEAudioProcessingImpl::GetAgcStatus(bool& enabled, AgcModes& mode) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetAgcStatus(enabled=?, mode=?)");
#ifdef WEBRTC_VOICE_ENGINE_AGC
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -252,8 +245,6 @@ int VoEAudioProcessingImpl::GetAgcStatus(bool& enabled, AgcModes& mode) {
break;
}
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetAgcStatus() => enabled=%d, mode=%d", enabled, mode);
return 0;
#else
_shared->SetLastError(VE_FUNC_NOT_SUPPORTED, kTraceError,
@@ -302,8 +293,6 @@ int VoEAudioProcessingImpl::SetAgcConfig(AgcConfig config) {
}
int VoEAudioProcessingImpl::GetAgcConfig(AgcConfig& config) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetAgcConfig(config=?)");
#ifdef WEBRTC_VOICE_ENGINE_AGC
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -317,12 +306,6 @@ int VoEAudioProcessingImpl::GetAgcConfig(AgcConfig& config) {
config.limiterEnable =
_shared->audio_processing()->gain_control()->is_limiter_enabled();
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetAgcConfig() => targetLeveldBOv=%u, "
- "digitalCompressionGaindB=%u, limiterEnable=%d",
- config.targetLeveldBOv, config.digitalCompressionGaindB,
- config.limiterEnable);
-
return 0;
#else
_shared->SetLastError(VE_FUNC_NOT_SUPPORTED, kTraceError,
@@ -359,8 +342,6 @@ int VoEAudioProcessingImpl::SetRxNsStatus(int channel,
int VoEAudioProcessingImpl::GetRxNsStatus(int channel,
bool& enabled,
NsModes& mode) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetRxNsStatus(channel=%d, enable=?, mode=?)", channel);
#ifdef WEBRTC_VOICE_ENGINE_NR
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -412,8 +393,6 @@ int VoEAudioProcessingImpl::SetRxAgcStatus(int channel,
int VoEAudioProcessingImpl::GetRxAgcStatus(int channel,
bool& enabled,
AgcModes& mode) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetRxAgcStatus(channel=%d, enable=?, mode=?)", channel);
#ifdef WEBRTC_VOICE_ENGINE_AGC
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -460,8 +439,6 @@ int VoEAudioProcessingImpl::SetRxAgcConfig(int channel, AgcConfig config) {
}
int VoEAudioProcessingImpl::GetRxAgcConfig(int channel, AgcConfig& config) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetRxAgcConfig(channel=%d)", channel);
#ifdef WEBRTC_VOICE_ENGINE_AGC
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -609,8 +586,6 @@ int VoEAudioProcessingImpl::SetEcStatus(bool enable, EcModes mode) {
}
int VoEAudioProcessingImpl::GetEcStatus(bool& enabled, EcModes& mode) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetEcStatus()");
#ifdef WEBRTC_VOICE_ENGINE_ECHO
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -625,8 +600,6 @@ int VoEAudioProcessingImpl::GetEcStatus(bool& enabled, EcModes& mode) {
enabled = _shared->audio_processing()->echo_control_mobile()->is_enabled();
}
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetEcStatus() => enabled=%i, mode=%i", enabled, (int)mode);
return 0;
#else
_shared->SetLastError(VE_FUNC_NOT_SUPPORTED, kTraceError,
@@ -642,8 +615,6 @@ void VoEAudioProcessingImpl::SetDelayOffsetMs(int offset) {
}
int VoEAudioProcessingImpl::DelayOffsetMs() {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "DelayOffsetMs()");
return _shared->audio_processing()->delay_offset_ms();
}
@@ -700,8 +671,6 @@ int VoEAudioProcessingImpl::SetAecmMode(AecmModes mode, bool enableCNG) {
}
int VoEAudioProcessingImpl::GetAecmMode(AecmModes& mode, bool& enabledCNG) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetAECMMode(mode=?)");
#ifdef WEBRTC_VOICE_ENGINE_ECHO
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -756,8 +725,6 @@ int VoEAudioProcessingImpl::EnableHighPassFilter(bool enable) {
}
bool VoEAudioProcessingImpl::IsHighPassFilterEnabled() {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "IsHighPassFilterEnabled()");
return _shared->audio_processing()->high_pass_filter()->is_enabled();
}
@@ -844,8 +811,6 @@ int VoEAudioProcessingImpl::SetEcMetricsStatus(bool enable) {
}
int VoEAudioProcessingImpl::GetEcMetricsStatus(bool& enabled) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetEcMetricsStatus(enabled=?)");
#ifdef WEBRTC_VOICE_ENGINE_ECHO
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -867,8 +832,6 @@ int VoEAudioProcessingImpl::GetEcMetricsStatus(bool& enabled) {
enabled = echo_mode;
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetEcMetricsStatus() => enabled=%d", enabled);
return 0;
#else
_shared->SetLastError(VE_FUNC_NOT_SUPPORTED, kTraceError,
@@ -881,8 +844,6 @@ int VoEAudioProcessingImpl::GetEchoMetrics(int& ERL,
int& ERLE,
int& RERL,
int& A_NLP) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetEchoMetrics(ERL=?, ERLE=?, RERL=?, A_NLP=?)");
#ifdef WEBRTC_VOICE_ENGINE_ECHO
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -910,9 +871,6 @@ int VoEAudioProcessingImpl::GetEchoMetrics(int& ERL,
RERL = echoMetrics.residual_echo_return_loss.instant;
A_NLP = echoMetrics.a_nlp.instant;
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetEchoMetrics() => ERL=%d, ERLE=%d, RERL=%d, A_NLP=%d", ERL,
- ERLE, RERL, A_NLP);
return 0;
#else
_shared->SetLastError(VE_FUNC_NOT_SUPPORTED, kTraceError,
@@ -924,8 +882,6 @@ int VoEAudioProcessingImpl::GetEchoMetrics(int& ERL,
int VoEAudioProcessingImpl::GetEcDelayMetrics(int& delay_median,
int& delay_std,
float& fraction_poor_delays) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetEcDelayMetrics(median=?, std=?, fraction_poor_delays=?)");
#ifdef WEBRTC_VOICE_ENGINE_ECHO
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -955,10 +911,6 @@ int VoEAudioProcessingImpl::GetEcDelayMetrics(int& delay_median,
delay_std = std;
fraction_poor_delays = poor_fraction;
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetEcDelayMetrics() => delay_median=%d, delay_std=%d, "
- "fraction_poor_delays=%f",
- delay_median, delay_std, fraction_poor_delays);
return 0;
#else
_shared->SetLastError(VE_FUNC_NOT_SUPPORTED, kTraceError,
@@ -1032,8 +984,6 @@ int VoEAudioProcessingImpl::SetTypingDetectionStatus(bool enable) {
}
int VoEAudioProcessingImpl::GetTypingDetectionStatus(bool& enabled) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetTypingDetectionStatus()");
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
return -1;
@@ -1047,8 +997,6 @@ int VoEAudioProcessingImpl::GetTypingDetectionStatus(bool& enabled) {
}
int VoEAudioProcessingImpl::TimeSinceLastTyping(int& seconds) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "TimeSinceLastTyping()");
#if !defined(WEBRTC_VOICE_ENGINE_TYPING_DETECTION)
NOT_SUPPORTED(_shared->statistics());
#else
« no previous file with comments | « webrtc/voice_engine/transmit_mixer.cc ('k') | webrtc/voice_engine/voe_codec_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698