Index: webrtc/modules/audio_processing/aec/aec_core_internal.h |
diff --git a/webrtc/modules/audio_processing/aec/aec_core_internal.h b/webrtc/modules/audio_processing/aec/aec_core_internal.h |
index 05f5083c4ad919065048ec157456bfc6936c473a..831f336fae787ad8ee2d9b0a5898dd074cb5baad 100644 |
--- a/webrtc/modules/audio_processing/aec/aec_core_internal.h |
+++ b/webrtc/modules/audio_processing/aec/aec_core_internal.h |
@@ -17,6 +17,7 @@ extern "C" { |
#include "webrtc/common_audio/wav_file.h" |
#include "webrtc/modules/audio_processing/aec/aec_common.h" |
#include "webrtc/modules/audio_processing/aec/aec_core.h" |
+#include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" |
#include "webrtc/modules/audio_processing/utility/block_mean_calculator.h" |
#include "webrtc/typedefs.h" |
@@ -74,7 +75,9 @@ class DivergentFilterFraction { |
}; |
struct AecCore { |
- AecCore(); |
+ explicit AecCore(int instance_index); |
+ |
+ ApmDataDumper data_dumper; |
int farBufWritePos, farBufReadPos; |
@@ -185,22 +188,6 @@ struct AecCore { |
// Flag that extreme filter divergence has been detected by the Echo |
// Suppressor. |
int extreme_filter_divergence; |
- |
-#ifdef WEBRTC_AEC_DEBUG_DUMP |
- // Sequence number of this AEC instance, so that different instances can |
- // choose different dump file names. |
- int instance_index; |
- |
- // Number of times we've restarted dumping; used to pick new dump file names |
- // each time. |
- int debug_dump_count; |
- |
- rtc_WavWriter* farFile; |
- rtc_WavWriter* nearFile; |
- rtc_WavWriter* outFile; |
- rtc_WavWriter* outLinearFile; |
- FILE* e_fft_file; |
-#endif |
}; |
typedef void (*WebRtcAecFilterFar)( |