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

Side by Side Diff: content/renderer/media/media_stream_audio_processor_options.cc

Issue 2081093002: Cleanup: Remove video constraint names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_processor_options.h" 5 #include "content/renderer/media/media_stream_audio_processor_options.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 30 matching lines...) Expand all
41 "googExperimentalNoiseSuppression"; 41 "googExperimentalNoiseSuppression";
42 const char MediaAudioConstraints::kGoogBeamforming[] = "googBeamforming"; 42 const char MediaAudioConstraints::kGoogBeamforming[] = "googBeamforming";
43 const char MediaAudioConstraints::kGoogArrayGeometry[] = "googArrayGeometry"; 43 const char MediaAudioConstraints::kGoogArrayGeometry[] = "googArrayGeometry";
44 const char MediaAudioConstraints::kGoogHighpassFilter[] = "googHighpassFilter"; 44 const char MediaAudioConstraints::kGoogHighpassFilter[] = "googHighpassFilter";
45 const char MediaAudioConstraints::kGoogTypingNoiseDetection[] = 45 const char MediaAudioConstraints::kGoogTypingNoiseDetection[] =
46 "googTypingNoiseDetection"; 46 "googTypingNoiseDetection";
47 const char MediaAudioConstraints::kGoogAudioMirroring[] = "googAudioMirroring"; 47 const char MediaAudioConstraints::kGoogAudioMirroring[] = "googAudioMirroring";
48 48
49 namespace { 49 namespace {
50 50
51 // Controls whether the hotword audio stream is used on platforms that support
tommi (sloooow) - chröme 2016/06/21 07:17:41 nit: "used on supported platforms."
hta - Chromium 2016/06/23 15:51:17 Done.
52 // it.
53 const char kMediaStreamAudioHotword[] = "googHotword";
54
51 // Constant constraint keys which enables default audio constraints on 55 // Constant constraint keys which enables default audio constraints on
52 // mediastreams with audio. 56 // mediastreams with audio.
53 struct { 57 struct {
54 const char* key; 58 const char* key;
55 bool value; 59 bool value;
56 } const kDefaultAudioConstraints[] = { 60 } const kDefaultAudioConstraints[] = {
57 { MediaAudioConstraints::kEchoCancellation, true }, 61 { MediaAudioConstraints::kEchoCancellation, true },
58 { MediaAudioConstraints::kGoogEchoCancellation, true }, 62 { MediaAudioConstraints::kGoogEchoCancellation, true },
59 #if defined(OS_ANDROID) 63 #if defined(OS_ANDROID)
60 { MediaAudioConstraints::kGoogExperimentalEchoCancellation, false }, 64 { MediaAudioConstraints::kGoogExperimentalEchoCancellation, false },
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 467
464 // Give preference to the audio constraint over the device-supplied mic 468 // Give preference to the audio constraint over the device-supplied mic
465 // positions. This is mainly for testing purposes. 469 // positions. This is mainly for testing purposes.
466 return WebrtcPointsFromMediaPoints( 470 return WebrtcPointsFromMediaPoints(
467 constraints_geometry.empty() 471 constraints_geometry.empty()
468 ? input_params.mic_positions 472 ? input_params.mic_positions
469 : media::ParsePointsFromString(constraints_geometry)); 473 : media::ParsePointsFromString(constraints_geometry));
470 } 474 }
471 475
472 } // namespace content 476 } // namespace content
OLDNEW
« no previous file with comments | « content/common/media/media_stream_options.cc ('k') | content/renderer/media/media_stream_video_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698