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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // The config is applied by passing the struct to the ApplyConfig method. | 251 // The config is applied by passing the struct to the ApplyConfig method. |
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 { |
| 262 bool enabled = false; |
| 263 } residual_echo_detector; |
261 }; | 264 }; |
262 | 265 |
263 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. | 266 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. |
264 enum ChannelLayout { | 267 enum ChannelLayout { |
265 kMono, | 268 kMono, |
266 // Left, right. | 269 // Left, right. |
267 kStereo, | 270 kStereo, |
268 // Mono, keyboard, and mic. | 271 // Mono, keyboard, and mic. |
269 kMonoAndKeyboard, | 272 kMonoAndKeyboard, |
270 // Left, right, keyboard, and mic. | 273 // Left, right, keyboard, and mic. |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 // This does not impact the size of frames passed to |ProcessStream()|. | 1001 // This does not impact the size of frames passed to |ProcessStream()|. |
999 virtual int set_frame_size_ms(int size) = 0; | 1002 virtual int set_frame_size_ms(int size) = 0; |
1000 virtual int frame_size_ms() const = 0; | 1003 virtual int frame_size_ms() const = 0; |
1001 | 1004 |
1002 protected: | 1005 protected: |
1003 virtual ~VoiceDetection() {} | 1006 virtual ~VoiceDetection() {} |
1004 }; | 1007 }; |
1005 } // namespace webrtc | 1008 } // namespace webrtc |
1006 | 1009 |
1007 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 1010 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |