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

Unified Diff: content/renderer/media/webaudio_media_stream_source.cc

Issue 2645613005: MediaStreamTrack: Add echo-cancellation and device-id to getSettings (Closed)
Patch Set: Created 3 years, 11 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/webaudio_media_stream_source.cc
diff --git a/content/renderer/media/webaudio_media_stream_source.cc b/content/renderer/media/webaudio_media_stream_source.cc
index 7f4c75d37ff6f15c6fc451b96e8345aa83aad7b6..b44095d2ed579bd76365e7cb5540bcadf690bb92 100644
--- a/content/renderer/media/webaudio_media_stream_source.cc
+++ b/content/renderer/media/webaudio_media_stream_source.cc
@@ -25,6 +25,12 @@ WebAudioMediaStreamSource::~WebAudioMediaStreamSource() {
EnsureSourceIsStopped();
}
+void WebAudioMediaStreamSource::getSettings(
+ blink::WebMediaStreamTrack::Settings& settings) {
+ // This source type does not support echo cancellation.
+ settings.setEchoCancellation(false);
+}
+
void WebAudioMediaStreamSource::setFormat(size_t number_of_channels,
float sample_rate) {
DCHECK(thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698