diff options
Diffstat (limited to 'webrtc/modules/audio_processing/agc/agc_manager_direct.cc')
-rw-r--r-- | webrtc/modules/audio_processing/agc/agc_manager_direct.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/webrtc/modules/audio_processing/agc/agc_manager_direct.cc b/webrtc/modules/audio_processing/agc/agc_manager_direct.cc index 867022dcbf..e56984a1b1 100644 --- a/webrtc/modules/audio_processing/agc/agc_manager_direct.cc +++ b/webrtc/modules/audio_processing/agc/agc_manager_direct.cc @@ -19,7 +19,7 @@ #include "webrtc/modules/audio_processing/agc/gain_map_internal.h" #include "webrtc/modules/audio_processing/gain_control_impl.h" -#include "webrtc/modules/interface/module_common_types.h" +#include "webrtc/modules/include/module_common_types.h" #include "webrtc/system_wrappers/include/logging.h" namespace webrtc { @@ -168,19 +168,19 @@ int AgcManagerDirect::Initialize() { // example, what happens when we change devices. if (gctrl_->set_mode(GainControl::kFixedDigital) != 0) { - LOG_FERR1(LS_ERROR, set_mode, GainControl::kFixedDigital); + LOG(LS_ERROR) << "set_mode(GainControl::kFixedDigital) failed."; return -1; } if (gctrl_->set_target_level_dbfs(2) != 0) { - LOG_FERR1(LS_ERROR, set_target_level_dbfs, 2); + LOG(LS_ERROR) << "set_target_level_dbfs(2) failed."; return -1; } if (gctrl_->set_compression_gain_db(kDefaultCompressionGain) != 0) { - LOG_FERR1(LS_ERROR, set_compression_gain_db, kDefaultCompressionGain); + LOG(LS_ERROR) << "set_compression_gain_db(kDefaultCompressionGain) failed."; return -1; } if (gctrl_->enable_limiter(true) != 0) { - LOG_FERR1(LS_ERROR, enable_limiter, true); + LOG(LS_ERROR) << "enable_limiter(true) failed."; return -1; } return 0; @@ -244,7 +244,7 @@ void AgcManagerDirect::Process(const int16_t* audio, } if (agc_->Process(audio, length, sample_rate_hz) != 0) { - LOG_FERR0(LS_ERROR, Agc::Process); + LOG(LS_ERROR) << "Agc::Process failed"; assert(false); } @@ -434,7 +434,8 @@ void AgcManagerDirect::UpdateCompressor() { compression_ = new_compression; compression_accumulator_ = new_compression; if (gctrl_->set_compression_gain_db(compression_) != 0) { - LOG_FERR1(LS_ERROR, set_compression_gain_db, compression_); + LOG(LS_ERROR) << "set_compression_gain_db(" << compression_ + << ") failed."; } } } |