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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 // - Much more conservative adjustments to the far-end read pointer. We smooth | 53 // - Much more conservative adjustments to the far-end read pointer. We smooth |
54 // the delay difference more heavily, and back off from the difference more. | 54 // the delay difference more heavily, and back off from the difference more. |
55 // Adjustments force a readaptation of the filter, so they should be avoided | 55 // Adjustments force a readaptation of the filter, so they should be avoided |
56 // except when really necessary. | 56 // except when really necessary. |
57 struct ExtendedFilter { | 57 struct ExtendedFilter { |
58 ExtendedFilter() : enabled(false) {} | 58 ExtendedFilter() : enabled(false) {} |
59 explicit ExtendedFilter(bool enabled) : enabled(enabled) {} | 59 explicit ExtendedFilter(bool enabled) : enabled(enabled) {} |
60 bool enabled; | 60 bool enabled; |
61 }; | 61 }; |
62 | 62 |
63 // Use to disable the reported system delays. By disabling the reported system | 63 // Enables delay-agnostic echo cancellation. This feature relies on internally |
64 // delays the echo cancellation algorithm assumes the process and reverse | 64 // estimated delays between the process and reverse streams, thus not relying |
65 // streams to be aligned. This configuration only applies to EchoCancellation | 65 // on reported system delays. This configuration only applies to |
66 // and not EchoControlMobile and is set with AudioProcessing::SetExtraOptions(). | 66 // EchoCancellation and not EchoControlMobile and is set with |
67 // Note that by disabling reported system delays the EchoCancellation may | 67 // AudioProcessing::SetExtraOptions(). |
bjornv1
2015/07/03 06:22:16
Change to
"It can be set in the constructor or usi
hlundin-webrtc
2015/07/03 07:07:11
Done.
| |
68 // regress in performance. | |
69 // TODO(henrik.lundin): Remove ReportedDelay once DelayAgnostic has | |
70 // propagated through to all channels | |
71 // (https://code.google.com/p/webrtc/issues/detail?id=4651). | |
72 struct ReportedDelay { | |
73 ReportedDelay() : enabled(true) {} | |
74 explicit ReportedDelay(bool enabled) : enabled(enabled) {} | |
75 bool enabled; | |
76 }; | |
77 struct DelayAgnostic { | 68 struct DelayAgnostic { |
78 DelayAgnostic() : enabled(false) {} | 69 DelayAgnostic() : enabled(false) {} |
79 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} | 70 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} |
80 bool enabled; | 71 bool enabled; |
81 }; | 72 }; |
82 | 73 |
83 // Use to enable experimental gain control (AGC). At startup the experimental | 74 // Use to enable experimental gain control (AGC). At startup the experimental |
84 // AGC moves the microphone volume up to |startup_min_volume| if the current | 75 // AGC moves the microphone volume up to |startup_min_volume| if the current |
85 // microphone volume is set too low. The value is clamped to its operating range | 76 // microphone volume is set too low. The value is clamped to its operating range |
86 // [12, 255]. Here, 255 maps to 100%. | 77 // [12, 255]. Here, 255 maps to 100%. |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
790 // This does not impact the size of frames passed to |ProcessStream()|. | 781 // This does not impact the size of frames passed to |ProcessStream()|. |
791 virtual int set_frame_size_ms(int size) = 0; | 782 virtual int set_frame_size_ms(int size) = 0; |
792 virtual int frame_size_ms() const = 0; | 783 virtual int frame_size_ms() const = 0; |
793 | 784 |
794 protected: | 785 protected: |
795 virtual ~VoiceDetection() {} | 786 virtual ~VoiceDetection() {} |
796 }; | 787 }; |
797 } // namespace webrtc | 788 } // namespace webrtc |
798 | 789 |
799 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 790 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |