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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 struct Config { | 252 struct Config { |
253 struct LevelController { | 253 struct LevelController { |
254 bool enabled = false; | 254 bool enabled = false; |
255 | 255 |
256 // Sets the initial peak level to use inside the level controller in order | 256 // Sets the initial peak level to use inside the level controller in order |
257 // to compute the signal gain. The unit for the peak level is dBFS and | 257 // to compute the signal gain. The unit for the peak level is dBFS and |
258 // the allowed range is [-100, 0]. | 258 // the allowed range is [-100, 0]. |
259 float initial_peak_level_dbfs = -6.0206f; | 259 float initial_peak_level_dbfs = -6.0206f; |
260 } level_controller; | 260 } level_controller; |
261 struct ResidualEchoDetector { | 261 struct ResidualEchoDetector { |
| 262 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) |
262 bool enabled = false; | 263 bool enabled = false; |
| 264 #else |
| 265 bool enabled = true; |
| 266 #endif |
263 } residual_echo_detector; | 267 } residual_echo_detector; |
264 }; | 268 }; |
265 | 269 |
266 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. | 270 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. |
267 enum ChannelLayout { | 271 enum ChannelLayout { |
268 kMono, | 272 kMono, |
269 // Left, right. | 273 // Left, right. |
270 kStereo, | 274 kStereo, |
271 // Mono, keyboard, and mic. | 275 // Mono, keyboard, and mic. |
272 kMonoAndKeyboard, | 276 kMonoAndKeyboard, |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 // This does not impact the size of frames passed to |ProcessStream()|. | 1076 // This does not impact the size of frames passed to |ProcessStream()|. |
1073 virtual int set_frame_size_ms(int size) = 0; | 1077 virtual int set_frame_size_ms(int size) = 0; |
1074 virtual int frame_size_ms() const = 0; | 1078 virtual int frame_size_ms() const = 0; |
1075 | 1079 |
1076 protected: | 1080 protected: |
1077 virtual ~VoiceDetection() {} | 1081 virtual ~VoiceDetection() {} |
1078 }; | 1082 }; |
1079 } // namespace webrtc | 1083 } // namespace webrtc |
1080 | 1084 |
1081 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 1085 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |