| OLD | NEW |
| 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 Loading... |
| 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 supported platforms. |
| 52 const char kMediaStreamAudioHotword[] = "googHotword"; |
| 53 |
| 51 // Constant constraint keys which enables default audio constraints on | 54 // Constant constraint keys which enables default audio constraints on |
| 52 // mediastreams with audio. | 55 // mediastreams with audio. |
| 53 struct { | 56 struct { |
| 54 const char* key; | 57 const char* key; |
| 55 bool value; | 58 bool value; |
| 56 } const kDefaultAudioConstraints[] = { | 59 } const kDefaultAudioConstraints[] = { |
| 57 { MediaAudioConstraints::kEchoCancellation, true }, | 60 { MediaAudioConstraints::kEchoCancellation, true }, |
| 58 { MediaAudioConstraints::kGoogEchoCancellation, true }, | 61 { MediaAudioConstraints::kGoogEchoCancellation, true }, |
| 59 #if defined(OS_ANDROID) | 62 #if defined(OS_ANDROID) |
| 60 { MediaAudioConstraints::kGoogExperimentalEchoCancellation, false }, | 63 { MediaAudioConstraints::kGoogExperimentalEchoCancellation, false }, |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 466 |
| 464 // Give preference to the audio constraint over the device-supplied mic | 467 // Give preference to the audio constraint over the device-supplied mic |
| 465 // positions. This is mainly for testing purposes. | 468 // positions. This is mainly for testing purposes. |
| 466 return WebrtcPointsFromMediaPoints( | 469 return WebrtcPointsFromMediaPoints( |
| 467 constraints_geometry.empty() | 470 constraints_geometry.empty() |
| 468 ? input_params.mic_positions | 471 ? input_params.mic_positions |
| 469 : media::ParsePointsFromString(constraints_geometry)); | 472 : media::ParsePointsFromString(constraints_geometry)); |
| 470 } | 473 } |
| 471 | 474 |
| 472 } // namespace content | 475 } // namespace content |
| OLD | NEW |