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

Unified Diff: content/public/common/media_stream_request.cc

Issue 23731007: Implicit audio output device selection for getUserMedia. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 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/public/common/media_stream_request.cc
diff --git a/content/public/common/media_stream_request.cc b/content/public/common/media_stream_request.cc
index e3ad35bde551c7d4dbe6e719d59aaaf6e36364d4..008835414f52400e56942bd1c4a5a00a2c5627cb 100644
--- a/content/public/common/media_stream_request.cc
+++ b/content/public/common/media_stream_request.cc
@@ -28,9 +28,7 @@ MediaStreamDevice::MediaStreamDevice(
const std::string& name)
: type(type),
id(id),
- name(name),
- sample_rate(0),
- channel_layout(0) {
+ name(name) {
}
MediaStreamDevice::MediaStreamDevice(
@@ -38,12 +36,12 @@ MediaStreamDevice::MediaStreamDevice(
const std::string& id,
const std::string& name,
int sample_rate,
- int channel_layout)
+ int channel_layout,
+ int frames_per_buffer)
: type(type),
id(id),
name(name),
- sample_rate(sample_rate),
- channel_layout(channel_layout) {
+ input(sample_rate, channel_layout, frames_per_buffer) {
}
MediaStreamDevice::~MediaStreamDevice() {}
« no previous file with comments | « content/public/common/media_stream_request.h ('k') | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698