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 20 matching lines...) Expand all Loading... | |
31 | 31 |
32 class AudioFrame; | 32 class AudioFrame; |
33 | 33 |
34 class NonlinearBeamformer; | 34 class NonlinearBeamformer; |
35 | 35 |
36 class StreamConfig; | 36 class StreamConfig; |
37 class ProcessingConfig; | 37 class ProcessingConfig; |
38 | 38 |
39 class EchoCancellation; | 39 class EchoCancellation; |
40 class EchoControlMobile; | 40 class EchoControlMobile; |
41 class ResidualEchoDetector; | |
peah-webrtc
2016/10/13 10:11:17
This forward can be removed.
ivoc
2016/10/13 10:31:25
Done.
| |
41 class GainControl; | 42 class GainControl; |
42 class HighPassFilter; | 43 class HighPassFilter; |
43 class LevelEstimator; | 44 class LevelEstimator; |
44 class NoiseSuppression; | 45 class NoiseSuppression; |
45 class VoiceDetection; | 46 class VoiceDetection; |
46 | 47 |
47 // Use to enable the extended filter mode in the AEC, along with robustness | 48 // Use to enable the extended filter mode in the AEC, along with robustness |
48 // measures around the reported system delays. It comes with a significant | 49 // measures around the reported system delays. It comes with a significant |
49 // increase in AEC complexity, but is much more robust to unreliable reported | 50 // increase in AEC complexity, but is much more robust to unreliable reported |
50 // delays. | 51 // delays. |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
251 // The config is applied by passing the struct to the ApplyConfig method. | 252 // The config is applied by passing the struct to the ApplyConfig method. |
252 struct Config { | 253 struct Config { |
253 struct LevelController { | 254 struct LevelController { |
254 bool enabled = false; | 255 bool enabled = false; |
255 | 256 |
256 // Sets the initial peak level to use inside the level controller in order | 257 // 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 | 258 // to compute the signal gain. The unit for the peak level is dBFS and |
258 // the allowed range is [-100, 0]. | 259 // the allowed range is [-100, 0]. |
259 float initial_peak_level_dbfs = -6.0206f; | 260 float initial_peak_level_dbfs = -6.0206f; |
260 } level_controller; | 261 } level_controller; |
262 struct ResidualEchoDetector { | |
263 bool enabled = false; | |
264 } residual_echo_detector; | |
261 }; | 265 }; |
262 | 266 |
263 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. | 267 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. |
264 enum ChannelLayout { | 268 enum ChannelLayout { |
265 kMono, | 269 kMono, |
266 // Left, right. | 270 // Left, right. |
267 kStereo, | 271 kStereo, |
268 // Mono, keyboard, and mic. | 272 // Mono, keyboard, and mic. |
269 kMonoAndKeyboard, | 273 kMonoAndKeyboard, |
270 // Left, right, keyboard, and mic. | 274 // Left, right, keyboard, and mic. |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1000 // This does not impact the size of frames passed to |ProcessStream()|. | 1004 // This does not impact the size of frames passed to |ProcessStream()|. |
1001 virtual int set_frame_size_ms(int size) = 0; | 1005 virtual int set_frame_size_ms(int size) = 0; |
1002 virtual int frame_size_ms() const = 0; | 1006 virtual int frame_size_ms() const = 0; |
1003 | 1007 |
1004 protected: | 1008 protected: |
1005 virtual ~VoiceDetection() {} | 1009 virtual ~VoiceDetection() {} |
1006 }; | 1010 }; |
1007 } // namespace webrtc | 1011 } // namespace webrtc |
1008 | 1012 |
1009 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 1013 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |