Stop using LOG macros in favor of RTC_ prefixed macros.
This CL has been generated with the following script: for m in PLOG \ LOG_TAG \ LOG_GLEM \ LOG_GLE_EX \ LOG_GLE \ LAST_SYSTEM_ERROR \ LOG_ERRNO_EX \ LOG_ERRNO \ LOG_ERR_EX \ LOG_ERR \ LOG_V \ LOG_F \ LOG_T_F \ LOG_E \ LOG_T \ LOG_CHECK_LEVEL_V \ LOG_CHECK_LEVEL \ LOG do git grep -l $m | xargs sed -i "s,\b$m\b,RTC_$m,g" done git checkout rtc_base/logging.h git cl format Bug: webrtc:8452 Change-Id: I1a53ef3e0a5ef6e244e62b2e012b864914784600 Reviewed-on: https://webrtc-review.googlesource.com/21325 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20617}
This commit is contained in:
committed by
Commit Bot
parent
34fa309129
commit
675513b96a
@ -403,8 +403,8 @@ AudioProcessingImpl::AudioProcessingImpl(
|
||||
// implemented.
|
||||
private_submodules_->gain_controller2.reset(new GainController2());
|
||||
|
||||
LOG(LS_INFO) << "Capture post processor activated: "
|
||||
<< !!private_submodules_->capture_post_processor;
|
||||
RTC_LOG(LS_INFO) << "Capture post processor activated: "
|
||||
<< !!private_submodules_->capture_post_processor;
|
||||
}
|
||||
|
||||
SetExtraOptions(config);
|
||||
@ -660,11 +660,11 @@ void AudioProcessingImpl::ApplyConfig(const AudioProcessing::Config& config) {
|
||||
|
||||
bool config_ok = LevelController::Validate(config_.level_controller);
|
||||
if (!config_ok) {
|
||||
LOG(LS_ERROR) << "AudioProcessing module config error" << std::endl
|
||||
<< "level_controller: "
|
||||
<< LevelController::ToString(config_.level_controller)
|
||||
<< std::endl
|
||||
<< "Reverting to default parameter set";
|
||||
RTC_LOG(LS_ERROR) << "AudioProcessing module config error" << std::endl
|
||||
<< "level_controller: "
|
||||
<< LevelController::ToString(config_.level_controller)
|
||||
<< std::endl
|
||||
<< "Reverting to default parameter set";
|
||||
config_.level_controller = AudioProcessing::Config::LevelController();
|
||||
}
|
||||
|
||||
@ -682,15 +682,15 @@ void AudioProcessingImpl::ApplyConfig(const AudioProcessing::Config& config) {
|
||||
// the level controller regardless of whether it is enabled or not.
|
||||
InitializeLevelController();
|
||||
}
|
||||
LOG(LS_INFO) << "Level controller activated: "
|
||||
<< capture_nonlocked_.level_controller_enabled;
|
||||
RTC_LOG(LS_INFO) << "Level controller activated: "
|
||||
<< capture_nonlocked_.level_controller_enabled;
|
||||
|
||||
private_submodules_->level_controller->ApplyConfig(config_.level_controller);
|
||||
|
||||
InitializeLowCutFilter();
|
||||
|
||||
LOG(LS_INFO) << "Highpass filter activated: "
|
||||
<< config_.high_pass_filter.enabled;
|
||||
RTC_LOG(LS_INFO) << "Highpass filter activated: "
|
||||
<< config_.high_pass_filter.enabled;
|
||||
|
||||
// Deprecated way of activating AEC3.
|
||||
// TODO(gustaf): Remove when possible.
|
||||
@ -700,23 +700,23 @@ void AudioProcessingImpl::ApplyConfig(const AudioProcessing::Config& config) {
|
||||
echo_control_factory_ =
|
||||
std::unique_ptr<EchoControlFactory>(new EchoCanceller3Factory());
|
||||
InitializeEchoController();
|
||||
LOG(LS_INFO) << "Echo canceller 3 activated: "
|
||||
<< capture_nonlocked_.echo_controller_enabled;
|
||||
RTC_LOG(LS_INFO) << "Echo canceller 3 activated: "
|
||||
<< capture_nonlocked_.echo_controller_enabled;
|
||||
}
|
||||
|
||||
config_ok = GainController2::Validate(config_.gain_controller2);
|
||||
if (!config_ok) {
|
||||
LOG(LS_ERROR) << "AudioProcessing module config error" << std::endl
|
||||
<< "Gain Controller 2: "
|
||||
<< GainController2::ToString(config_.gain_controller2)
|
||||
<< std::endl
|
||||
<< "Reverting to default parameter set";
|
||||
RTC_LOG(LS_ERROR) << "AudioProcessing module config error" << std::endl
|
||||
<< "Gain Controller 2: "
|
||||
<< GainController2::ToString(config_.gain_controller2)
|
||||
<< std::endl
|
||||
<< "Reverting to default parameter set";
|
||||
config_.gain_controller2 = AudioProcessing::Config::GainController2();
|
||||
}
|
||||
InitializeGainController2();
|
||||
private_submodules_->gain_controller2->ApplyConfig(config_.gain_controller2);
|
||||
LOG(LS_INFO) << "Gain Controller 2 activated: "
|
||||
<< config_.gain_controller2.enabled;
|
||||
RTC_LOG(LS_INFO) << "Gain Controller 2 activated: "
|
||||
<< config_.gain_controller2.enabled;
|
||||
}
|
||||
|
||||
void AudioProcessingImpl::SetExtraOptions(const webrtc::Config& config) {
|
||||
|
||||
Reference in New Issue
Block a user