OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 SphericalPointf target_direction) | 153 SphericalPointf target_direction) |
154 : enabled(enabled), | 154 : enabled(enabled), |
155 array_geometry(array_geometry), | 155 array_geometry(array_geometry), |
156 target_direction(target_direction) {} | 156 target_direction(target_direction) {} |
157 static const ConfigOptionID identifier = ConfigOptionID::kBeamforming; | 157 static const ConfigOptionID identifier = ConfigOptionID::kBeamforming; |
158 const bool enabled; | 158 const bool enabled; |
159 const std::vector<Point> array_geometry; | 159 const std::vector<Point> array_geometry; |
160 const SphericalPointf target_direction; | 160 const SphericalPointf target_direction; |
161 }; | 161 }; |
162 | 162 |
163 // Use to enable intelligibility enhancer in audio processing. Must be provided | 163 // Use to enable intelligibility enhancer in audio processing. |
164 // though the constructor. It will have no impact if used with | |
165 // AudioProcessing::SetExtraOptions(). | |
166 // | 164 // |
167 // Note: If enabled and the reverse stream has more than one output channel, | 165 // Note: If enabled and the reverse stream has more than one output channel, |
168 // the reverse stream will become an upmixed mono signal. | 166 // the reverse stream will become an upmixed mono signal. |
169 struct Intelligibility { | 167 struct Intelligibility { |
170 Intelligibility() : enabled(false) {} | 168 Intelligibility() : enabled(false) {} |
171 explicit Intelligibility(bool enabled) : enabled(enabled) {} | 169 explicit Intelligibility(bool enabled) : enabled(enabled) {} |
172 static const ConfigOptionID identifier = ConfigOptionID::kIntelligibility; | 170 static const ConfigOptionID identifier = ConfigOptionID::kIntelligibility; |
173 bool enabled; | 171 bool enabled; |
174 }; | 172 }; |
175 | 173 |
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 // This does not impact the size of frames passed to |ProcessStream()|. | 978 // This does not impact the size of frames passed to |ProcessStream()|. |
981 virtual int set_frame_size_ms(int size) = 0; | 979 virtual int set_frame_size_ms(int size) = 0; |
982 virtual int frame_size_ms() const = 0; | 980 virtual int frame_size_ms() const = 0; |
983 | 981 |
984 protected: | 982 protected: |
985 virtual ~VoiceDetection() {} | 983 virtual ~VoiceDetection() {} |
986 }; | 984 }; |
987 } // namespace webrtc | 985 } // namespace webrtc |
988 | 986 |
989 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |