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

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

Issue 1275783003: Add a virtual beamforming audio device on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some cross-platform errors. 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: 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 e2033d63ee7ecf79340c692c8fd77675e85f39b9..8d28008ae785c94940ac35c00f2d3802d079852b 100644
--- a/content/renderer/media/media_stream_audio_processor.h
+++ b/content/renderer/media/media_stream_audio_processor.h
@@ -11,6 +11,7 @@
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
#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/webrtc_audio_device_impl.h"
#include "media/base/audio_converter.h"
@@ -52,9 +53,10 @@ class CONTENT_EXPORT MediaStreamAudioProcessor :
// |playout_data_source| is used to register this class as a sink to the
// WebRtc playout data for processing AEC. If clients do not enable AEC,
// |playout_data_source| won't be used.
- MediaStreamAudioProcessor(const blink::WebMediaConstraints& constraints,
- int effects,
- WebRtcPlayoutDataSource* playout_data_source);
+ MediaStreamAudioProcessor(
+ const blink::WebMediaConstraints& constraints,
+ const MediaStreamDevice::AudioDeviceParameters& input_params,
+ WebRtcPlayoutDataSource* playout_data_source);
// Called when the format of the capture data has changed.
// Called on the main render thread. The caller is responsible for stopping
@@ -125,7 +127,8 @@ class CONTENT_EXPORT MediaStreamAudioProcessor :
// Helper to initialize the WebRtc AudioProcessing.
void InitializeAudioProcessingModule(
- const blink::WebMediaConstraints& constraints, int effects);
+ const blink::WebMediaConstraints& constraints,
+ const MediaStreamDevice::AudioDeviceParameters& input_params);
// Helper to initialize the capture converter.
void InitializeCaptureFifo(const media::AudioParameters& input_format);

Powered by Google App Engine
This is Rietveld 408576698