Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

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: removing macro and more Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d5e58c147a66c5ccf35f5f435f97e290cc3e4d30 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.h
+++ b/webrtc/modules/audio_processing/audio_processing_impl.h
@@ -19,6 +19,15 @@
#include "webrtc/base/thread_annotations.h"
#include "webrtc/modules/audio_processing/include/audio_processing.h"
+#ifdef WEBRTC_AUDIOPROC_DEBUG_DUMP
peah-webrtc 2015/10/02 08:34:27 Is this really the correct way to do this? Why not
minyue-webrtc 2015/10/02 09:01:42 problem goes away with new change in Patch set 7
+// Files generated at build-time by the protobuf compiler.
+#ifdef WEBRTC_ANDROID_PLATFORM_BUILD
+#include "external/webrtc/webrtc/modules/audio_processing/debug.pb.h"
+#else
+#include "webrtc/audio_processing/debug.pb.h"
+#endif
+#endif // WEBRTC_AUDIOPROC_DEBUG_DUMP
+
namespace webrtc {
class AgcManagerDirect;
@@ -167,9 +176,15 @@ class AudioProcessingImpl : public AudioProcessing {
// out into a separate class with an "enabled" and "disabled" implementation.
int WriteMessageToDebugFile();
int WriteInitMessage();
+ int WriteConfigMessage();
+
+ // Updates |config_| and returns true if any change is made.
+ bool UpdateCurrentConfig();
+
rtc::scoped_ptr<FileWrapper> debug_file_;
rtc::scoped_ptr<audioproc::Event> event_msg_; // Protobuf message.
std::string event_str_; // Memory for protobuf serialization.
+ rtc::scoped_ptr<audioproc::Config> config_;
#endif
// Format of processing streams at input/output call sites.

Powered by Google App Engine
This is Rietveld 408576698