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

Unified Diff: content/renderer/media/media_stream_audio_processor.h

Issue 1357013006: Add detection for repeated audio in capturing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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: content/renderer/media/media_stream_audio_processor.h
diff --git a/content/renderer/media/media_stream_audio_processor.h b/content/renderer/media/media_stream_audio_processor.h
index 4b74ca0a24090d73f7649b93a36dce24d2f9c62b..f5d5781f3a68d2e79b35d35da98be764b5947c88 100644
--- a/content/renderer/media/media_stream_audio_processor.h
+++ b/content/renderer/media/media_stream_audio_processor.h
@@ -14,6 +14,7 @@
#include "content/common/content_export.h"
#include "content/public/common/media_stream_request.h"
#include "content/renderer/media/aec_dump_message_filter.h"
+#include "content/renderer/media/audio_repetition_detector.h"
#include "content/renderer/media/webrtc_audio_device_impl.h"
#include "media/base/audio_converter.h"
#include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h"
@@ -113,6 +114,7 @@ class CONTENT_EXPORT MediaStreamAudioProcessor :
private:
friend class MediaStreamAudioProcessorTest;
+
FRIEND_TEST_ALL_PREFIXES(MediaStreamAudioProcessorTest,
GetAecDumpMessageFilter);
@@ -153,6 +155,9 @@ class CONTENT_EXPORT MediaStreamAudioProcessor :
// both the capture audio thread and the render audio thread.
base::subtle::Atomic32 render_delay_ms_;
+ // Module to detect and report (to UMA) bit exact audio repetition.
+ scoped_ptr<AudioRepetitionDetector> audio_repetition_detector_;
+
// Module to handle processing and format conversion.
scoped_ptr<webrtc::AudioProcessing> audio_processing_;
« no previous file with comments | « content/renderer/media/audio_repetition_detector_unittest.cc ('k') | content/renderer/media/media_stream_audio_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698