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

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

Issue 2941563002: Enable new getUserMedia audio constraints algorithm behind a flag. (Closed)
Patch Set: Created 3 years, 6 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_options.h
diff --git a/content/renderer/media/media_stream_audio_processor_options.h b/content/renderer/media/media_stream_audio_processor_options.h
index c891c8c1c1ccb579e72ee453f4e4eefad9245fcb..7216f883f34beeecb55015ac53332d55108645cb 100644
--- a/content/renderer/media/media_stream_audio_processor_options.h
+++ b/content/renderer/media/media_stream_audio_processor_options.h
@@ -110,6 +110,11 @@ struct CONTENT_EXPORT AudioProcessingProperties {
AudioProcessingProperties& operator=(AudioProcessingProperties&& other);
~AudioProcessingProperties();
+ // TODO(guidou): Remove this function. http://crbug.com/706408
+ static AudioProcessingProperties FromConstraints(
+ const blink::WebMediaConstraints& constraints,
+ const MediaStreamDevice::AudioDeviceParameters& input_params);
+
bool enable_sw_echo_cancellation = true;
bool disable_hw_echo_cancellation = false;
bool goog_audio_mirroring = false;
@@ -197,10 +202,14 @@ void GetAudioProcessingStats(
// Returns the array geometry from the media constraints if existing and
// otherwise that provided by the input device.
-CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints(
+// TODO(guidou): Remove this function. http://crbug.com/706408
+CONTENT_EXPORT std::vector<media::Point> GetArrayGeometryPreferringConstraints(
const MediaAudioConstraints& audio_constraints,
const MediaStreamDevice::AudioDeviceParameters& input_params);
+// TODO(guidou): Remove this function. http://crbug.com/706408
+CONTENT_EXPORT bool IsOldAudioConstraints();
+
} // namespace content
#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_

Powered by Google App Engine
This is Rietveld 408576698