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

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

Issue 187913002: Support the Aec dump for the APM in chrome (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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: content/renderer/media/webrtc_audio_capturer.h
diff --git a/content/renderer/media/webrtc_audio_capturer.h b/content/renderer/media/webrtc_audio_capturer.h
index 7f198eab1f540caf38f80a4c34dd7457cbdec41e..6d20d6e041508e6a4bdf6faf862f9571c4a5f2fb 100644
--- a/content/renderer/media/webrtc_audio_capturer.h
+++ b/content/renderer/media/webrtc_audio_capturer.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/memory/ref_counted.h"
+#include "base/platform_file.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
@@ -108,11 +109,14 @@ class CONTENT_EXPORT WebRtcAudioCapturer
void GetAudioProcessingParams(base::TimeDelta* delay, int* volume,
bool* key_pressed);
- // Use by the unittests to inject their own source to the capturer.
+ // Uses by the unittests to inject their own source to the capturer.
Henrik Grunell 2014/03/06 10:12:20 "Used".
no longer working on chromium 2014/03/06 18:57:21 Done.
void SetCapturerSourceForTesting(
const scoped_refptr<media::AudioCapturerSource>& source,
media::AudioParameters params);
+ void StartAecDump(const base::PlatformFile& aec_dump_file);
+ void StopAecDump();
+
protected:
friend class base::RefCountedThreadSafe<WebRtcAudioCapturer>;
virtual ~WebRtcAudioCapturer();
@@ -205,6 +209,10 @@ class CONTENT_EXPORT WebRtcAudioCapturer
// of RenderThread.
WebRtcAudioDeviceImpl* audio_device_;
+ // Used for start the Aec dump on the |audio_processor_|.
Henrik Grunell 2014/03/06 10:12:20 "starting"
no longer working on chromium 2014/03/06 18:57:21 Done.
+ // Accessed only on the main render thread.
+ base::PlatformFile aec_dump_file_;
+
DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer);
};

Powered by Google App Engine
This is Rietveld 408576698