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

Unified Diff: content/renderer/media/webrtc/processed_local_audio_source.h

Issue 2941563002: Enable new getUserMedia audio constraints algorithm behind a flag. (Closed)
Patch Set: remove vertical space from DEPS 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/webrtc/processed_local_audio_source.h
diff --git a/content/renderer/media/webrtc/processed_local_audio_source.h b/content/renderer/media/webrtc/processed_local_audio_source.h
index dead7afa75b877f1e926f5d82c9cfb855521e465..9a6375858079533ffefdc8f8965c2edc2351367d 100644
--- a/content/renderer/media/webrtc/processed_local_audio_source.h
+++ b/content/renderer/media/webrtc/processed_local_audio_source.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_RENDERER_MEDIA_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_
#define CONTENT_RENDERER_MEDIA_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_
+#include <string>
+
#include "base/atomicops.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -36,11 +38,12 @@ class CONTENT_EXPORT ProcessedLocalAudioSource final
// |consumer_render_frame_id| references the RenderFrame that will consume the
// audio data. Audio parameters and (optionally) a pre-existing audio session
// ID are derived from |device_info|. |factory| must outlive this instance.
- ProcessedLocalAudioSource(int consumer_render_frame_id,
- const StreamDeviceInfo& device_info,
- const blink::WebMediaConstraints& constraints,
- const ConstraintsCallback& started_callback,
- PeerConnectionDependencyFactory* factory);
+ ProcessedLocalAudioSource(
+ int consumer_render_frame_id,
+ const StreamDeviceInfo& device_info,
+ const AudioProcessingProperties& audio_processing_properties,
+ const ConstraintsCallback& started_callback,
+ PeerConnectionDependencyFactory* factory);
~ProcessedLocalAudioSource() final;
@@ -55,10 +58,8 @@ class CONTENT_EXPORT ProcessedLocalAudioSource final
allow_invalid_render_frame_id_for_testing_ = allowed;
}
- // Gets/Sets source constraints. Using this is optional, but must be done
- // before the first call to ConnectToTrack().
- const blink::WebMediaConstraints& source_constraints() const {
- return constraints_;
+ const AudioProcessingProperties& audio_processing_properties() const {
+ return audio_processing_properties_;
}
// The following accessors are not valid until after the source is started
@@ -111,8 +112,7 @@ class CONTENT_EXPORT ProcessedLocalAudioSource final
// or data flow changes are being called on the main thread.
base::ThreadChecker thread_checker_;
- // Cached audio constraints for the capturer.
- const blink::WebMediaConstraints constraints_;
+ AudioProcessingProperties audio_processing_properties_;
// Callback that's called when the audio source has been initialized.
ConstraintsCallback started_callback_;
« no previous file with comments | « content/renderer/media/video_track_adapter.h ('k') | content/renderer/media/webrtc/processed_local_audio_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698