configuration, inputs and outputs over a period of time. It is activated by AudioProcessing::StartRecording. The data is stored in binary protobuf format in a specified file. The file IO is, as of this CL, done from the real-time audio thread. This CL contains an interface for AecDump, a new APM submodule that will handle the recordings. Calls to the new interface from the AudioProcessingModule are added. These calls have no effect, and for a short while, audio_processing_impl.cc will contain two copies of recording calls. The original calls are guarded by the WEBRTC_AUDIOPROC_DEBUG_DUMP preprocessor define. They still have an effect, while the new ones do not. In the following CLs, the old recording calls will be removed, and an implementation of AecDump added. The reasons for the refactoring is to move file IO operations from the real-time audio thread, to add a top-level low-priority task queue for logging tasks like this, to simplify and modularize audio_processing_impl.cc and remove some of the preprocessor directives. These goals will be archived by the upcoming CLs. The implementation is in https://codereview.webrtc.org/2865113002. BUG=webrtc:7404 Review-Url: https://codereview.webrtc.org/2778783002 Cr-Commit-Position: refs/heads/master@{#18233}
41 lines
1.9 KiB
C++
41 lines
1.9 KiB
C++
/*
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "webrtc/modules/audio_processing/include/aec_dump.h"
|
|
|
|
namespace webrtc {
|
|
InternalAPMConfig::InternalAPMConfig() = default;
|
|
InternalAPMConfig::InternalAPMConfig(const InternalAPMConfig&) = default;
|
|
InternalAPMConfig::InternalAPMConfig(InternalAPMConfig&&) = default;
|
|
InternalAPMConfig& InternalAPMConfig::operator=(const InternalAPMConfig&) =
|
|
default;
|
|
|
|
bool InternalAPMConfig::operator==(const InternalAPMConfig& other) {
|
|
return aec_enabled == other.aec_enabled &&
|
|
aec_delay_agnostic_enabled == other.aec_delay_agnostic_enabled &&
|
|
aec_drift_compensation_enabled ==
|
|
other.aec_drift_compensation_enabled &&
|
|
aec_extended_filter_enabled == other.aec_extended_filter_enabled &&
|
|
aec_suppression_level == other.aec_suppression_level &&
|
|
aecm_enabled == other.aecm_enabled &&
|
|
aecm_comfort_noise_enabled == other.aecm_comfort_noise_enabled &&
|
|
aecm_routing_mode == other.aecm_routing_mode &&
|
|
agc_enabled == other.agc_enabled && agc_mode == other.agc_mode &&
|
|
agc_limiter_enabled == other.agc_limiter_enabled &&
|
|
hpf_enabled == other.hpf_enabled && ns_enabled == other.ns_enabled &&
|
|
ns_level == other.ns_level &&
|
|
transient_suppression_enabled == other.transient_suppression_enabled &&
|
|
intelligibility_enhancer_enabled ==
|
|
other.intelligibility_enhancer_enabled &&
|
|
noise_robust_agc_enabled == other.noise_robust_agc_enabled &&
|
|
experiments_description == other.experiments_description;
|
|
}
|
|
} // namespace webrtc
|