APM: Add ability to turn on/off dumping of internal data
This CL modifies the internal data logging and the audioproc_f tool to allow controlling that via the command line, rather than solely via a build flag. The logging of internal data is by default off. Bug: webrtc:5298 Change-Id: I96d1b4f990582938527b9039d6c2ecbb6f76e9ca Reviewed-on: https://webrtc-review.googlesource.com/c/107713 Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25352}
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
#include "modules/audio_processing/echo_cancellation_impl.h"
|
||||
#include "modules/audio_processing/echo_control_mobile_impl.h"
|
||||
#include "modules/audio_processing/include/audio_processing.h"
|
||||
#include "modules/audio_processing/logging/apm_data_dumper.h"
|
||||
#include "modules/audio_processing/test/fake_recording_device.h"
|
||||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/logging.h"
|
||||
@ -114,6 +115,9 @@ AudioProcessingSimulator::AudioProcessingSimulator(
|
||||
settings.initial_mic_level,
|
||||
settings_.simulate_mic_gain ? *settings.simulated_mic_kind : 0),
|
||||
worker_queue_("file_writer_task_queue") {
|
||||
RTC_CHECK(!settings_.dump_internal_data || WEBRTC_APM_DEBUG_DUMP == 1);
|
||||
ApmDataDumper::SetActivated(settings_.dump_internal_data);
|
||||
|
||||
if (settings_.ed_graph_output_filename &&
|
||||
!settings_.ed_graph_output_filename->empty()) {
|
||||
residual_echo_likelihood_graph_writer_.open(
|
||||
|
||||
Reference in New Issue
Block a user