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 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/public/common/media_stream_request.h" | 14 #include "content/public/common/media_stream_request.h" |
15 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" | 15 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" |
16 #include "third_party/webrtc/api/mediastreaminterface.h" | 16 #include "third_party/webrtc/api/mediastreaminterface.h" |
17 #include "third_party/webrtc/media/base/mediachannel.h" | 17 #include "third_party/webrtc/media/base/mediachannel.h" |
18 #include "third_party/webrtc/modules/audio_processing/include/audio_processing.h
" | 18 #include "third_party/webrtc/modules/audio_processing/include/audio_processing.h
" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 class EchoCancellation; | 22 class EchoCancellation; |
23 class TypingDetection; | 23 class TypingDetection; |
24 | 24 |
25 } | 25 } |
26 | 26 |
27 namespace content { | 27 namespace content { |
28 | 28 |
29 class RTCMediaConstraints; | |
30 | |
31 using webrtc::AudioProcessing; | 29 using webrtc::AudioProcessing; |
32 | 30 |
33 // A helper class to parse audio constraints from a blink::WebMediaConstraints | 31 // A helper class to parse audio constraints from a blink::WebMediaConstraints |
34 // object. | 32 // object. |
35 class CONTENT_EXPORT MediaAudioConstraints { | 33 class CONTENT_EXPORT MediaAudioConstraints { |
36 public: | 34 public: |
37 // Constraint keys used by audio processing. | 35 // Constraint keys used by audio processing. |
38 static const char kEchoCancellation[]; | 36 static const char kEchoCancellation[]; |
39 static const char kGoogEchoCancellation[]; | 37 static const char kGoogEchoCancellation[]; |
40 static const char kGoogExperimentalEchoCancellation[]; | 38 static const char kGoogExperimentalEchoCancellation[]; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 165 |
168 // Returns the array geometry from the media constraints if existing and | 166 // Returns the array geometry from the media constraints if existing and |
169 // otherwise that provided by the input device. | 167 // otherwise that provided by the input device. |
170 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( | 168 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( |
171 const MediaAudioConstraints& audio_constraints, | 169 const MediaAudioConstraints& audio_constraints, |
172 const MediaStreamDevice::AudioDeviceParameters& input_params); | 170 const MediaStreamDevice::AudioDeviceParameters& input_params); |
173 | 171 |
174 } // namespace content | 172 } // namespace content |
175 | 173 |
176 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 174 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
OLD | NEW |