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

Side by Side Diff: content/renderer/media/media_stream_audio_track.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/media_stream_audio_track.h" 5 #include "content/renderer/media/media_stream_audio_track.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "content/public/renderer/media_stream_audio_sink.h" 9 #include "content/public/renderer/media_stream_audio_sink.h"
10 #include "media/base/audio_bus.h" 10 #include "media/base/audio_bus.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 silent_bus_ = media::AudioBus::Create(audio_bus.channels(), 136 silent_bus_ = media::AudioBus::Create(audio_bus.channels(),
137 audio_bus.frames()); 137 audio_bus.frames());
138 silent_bus_->Zero(); 138 silent_bus_->Zero();
139 } 139 }
140 deliverer_.OnData(*silent_bus_, reference_time); 140 deliverer_.OnData(*silent_bus_, reference_time);
141 } 141 }
142 } 142 }
143 143
144 void MediaStreamAudioTrack::getSettings( 144 void MediaStreamAudioTrack::getSettings(
145 blink::WebMediaStreamTrack::Settings& settings) { 145 blink::WebMediaStreamTrack::Settings& settings) {
146 // TODO(hta): Extract the real value. 146 // At the moment, all audio values are extracted from the source,
147 settings.deviceId = blink::WebString("audio device ID"); 147 // not the track.
148 } 148 }
149 149
150 } // namespace content 150 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698