Chromium Code Reviews

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl.h

Issue 1348903004: Adding APM configuration in AEC dump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: unmerge a wrong change Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: webrtc/modules/audio_processing/audio_processing_impl.h
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.h b/webrtc/modules/audio_processing/audio_processing_impl.h
index 15c6f7572f9a6e5a8fedebd2308676b1b166be43..353bf6e38df22129b059cce938397fea009a23bc 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.h
+++ b/webrtc/modules/audio_processing/audio_processing_impl.h
@@ -167,9 +167,18 @@ class AudioProcessingImpl : public AudioProcessing {
// out into a separate class with an "enabled" and "disabled" implementation.
int WriteMessageToDebugFile();
int WriteInitMessage();
+
+ // Writes Config message. If not |forced|, only writes the current config if
+ // it is different from the last saved one; if |forced|, writes the config
+ // regardless of the last saved.
+ int WriteConfigMessage(bool forced);
+
rtc::scoped_ptr<FileWrapper> debug_file_;
rtc::scoped_ptr<audioproc::Event> event_msg_; // Protobuf message.
std::string event_str_; // Memory for protobuf serialization.
+
+ // Serialized string of last saved APM configuration.
+ std::string last_serialized_config_;
#endif
// Format of processing streams at input/output call sites.
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | webrtc/modules/audio_processing/debug.proto » ('J')

Powered by Google App Engine