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

Side by Side Diff: content/public/common/media_stream_request.h

Issue 1275783003: Add a virtual beamforming audio device on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix more constructors and disable for now. Created 5 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_
6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ 6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 int channel_layout; 147 int channel_layout;
148 148
149 // Preferred number of frames per buffer for the device. This is filled 149 // Preferred number of frames per buffer for the device. This is filled
150 // in on the browser side and can be used by the renderer to match the 150 // in on the browser side and can be used by the renderer to match the
151 // expected browser side settings and avoid unnecessary buffering. 151 // expected browser side settings and avoid unnecessary buffering.
152 // See media::AudioParameters for more. 152 // See media::AudioParameters for more.
153 int frames_per_buffer; 153 int frames_per_buffer;
154 154
155 // See media::AudioParameters::PlatformEffectsMask. 155 // See media::AudioParameters::PlatformEffectsMask.
156 int effects; 156 int effects;
157
158 std::string mic_positions;
157 }; 159 };
158 160
159 // These below two member variables are valid only when the type of device is 161 // These below two member variables are valid only when the type of device is
160 // audio (i.e. IsAudioInputMediaType returns true). 162 // audio (i.e. IsAudioInputMediaType returns true).
161 163
162 // Contains the device properties of the capture device. 164 // Contains the device properties of the capture device.
163 AudioDeviceParameters input; 165 AudioDeviceParameters input;
164 166
165 // If the capture device has an associated output device (e.g. headphones), 167 // If the capture device has an associated output device (e.g. headphones),
166 // this will contain the properties for the output device. If no such device 168 // this will contain the properties for the output device. If no such device
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 261
260 // Callback used return results of media access requests. 262 // Callback used return results of media access requests.
261 typedef base::Callback<void( 263 typedef base::Callback<void(
262 const MediaStreamDevices& devices, 264 const MediaStreamDevices& devices,
263 content::MediaStreamRequestResult result, 265 content::MediaStreamRequestResult result,
264 scoped_ptr<MediaStreamUI> ui)> MediaResponseCallback; 266 scoped_ptr<MediaStreamUI> ui)> MediaResponseCallback;
265 267
266 } // namespace content 268 } // namespace content
267 269
268 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ 270 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698