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

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

Issue 1834323002: MediaStream audio: Refactor 3 separate "glue" implementations into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE + Workaround to ensure MediaStreamAudioProcessor is destroyed on the main thread. Created 4 years, 7 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 12 matching lines...) Expand all
23 #include "media/base/audio_parameters.h" 23 #include "media/base/audio_parameters.h"
24 #include "third_party/webrtc/modules/audio_processing/include/audio_processing.h " 24 #include "third_party/webrtc/modules/audio_processing/include/audio_processing.h "
25 #include "third_party/webrtc/modules/audio_processing/typing_detection.h" 25 #include "third_party/webrtc/modules/audio_processing/typing_detection.h"
26 26
27 namespace content { 27 namespace content {
28 28
29 const char MediaAudioConstraints::kEchoCancellation[] = "echoCancellation"; 29 const char MediaAudioConstraints::kEchoCancellation[] = "echoCancellation";
30 const char MediaAudioConstraints::kGoogEchoCancellation[] = 30 const char MediaAudioConstraints::kGoogEchoCancellation[] =
31 "googEchoCancellation"; 31 "googEchoCancellation";
32 const char MediaAudioConstraints::kGoogExperimentalEchoCancellation[] = 32 const char MediaAudioConstraints::kGoogExperimentalEchoCancellation[] =
33 "googEchoCancellation2"; 33 "googExperimentalEchoCancellation";
34 const char MediaAudioConstraints::kGoogAutoGainControl[] = 34 const char MediaAudioConstraints::kGoogAutoGainControl[] =
35 "googAutoGainControl"; 35 "googAutoGainControl";
36 const char MediaAudioConstraints::kGoogExperimentalAutoGainControl[] = 36 const char MediaAudioConstraints::kGoogExperimentalAutoGainControl[] =
37 "googAutoGainControl2"; 37 "googExperimentalAutoGainControl";
38 const char MediaAudioConstraints::kGoogNoiseSuppression[] = 38 const char MediaAudioConstraints::kGoogNoiseSuppression[] =
39 "googNoiseSuppression"; 39 "googNoiseSuppression";
40 const char MediaAudioConstraints::kGoogExperimentalNoiseSuppression[] = 40 const char MediaAudioConstraints::kGoogExperimentalNoiseSuppression[] =
41 "googNoiseSuppression2"; 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 // Constant constraint keys which enables default audio constraints on 51 // Constant constraint keys which enables default audio constraints on
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 // Give preference to the audio constraint over the device-supplied mic 464 // Give preference to the audio constraint over the device-supplied mic
465 // positions. This is mainly for testing purposes. 465 // positions. This is mainly for testing purposes.
466 return WebrtcPointsFromMediaPoints( 466 return WebrtcPointsFromMediaPoints(
467 constraints_geometry.empty() 467 constraints_geometry.empty()
468 ? input_params.mic_positions 468 ? input_params.mic_positions
469 : media::ParsePointsFromString(constraints_geometry)); 469 : media::ParsePointsFromString(constraints_geometry));
470 } 470 }
471 471
472 } // namespace content 472 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698