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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Use to disable the reported system delays. By disabling the reported system |
64 // delays the echo cancellation algorithm assumes the process and reverse | 64 // delays the echo cancellation algorithm assumes the process and reverse |
65 // streams to be aligned. This configuration only applies to EchoCancellation | 65 // streams to be aligned. This configuration only applies to EchoCancellation |
66 // and not EchoControlMobile and is set with AudioProcessing::SetExtraOptions(). | 66 // and not EchoControlMobile and is set with AudioProcessing::SetExtraOptions(). |
67 // Note that by disabling reported system delays the EchoCancellation may | 67 // Note that by disabling reported system delays the EchoCancellation may |
68 // regress in performance. | 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). |
69 struct ReportedDelay { | 72 struct ReportedDelay { |
70 ReportedDelay() : enabled(true) {} | 73 ReportedDelay() : enabled(true) {} |
71 explicit ReportedDelay(bool enabled) : enabled(enabled) {} | 74 explicit ReportedDelay(bool enabled) : enabled(enabled) {} |
72 bool enabled; | 75 bool enabled; |
73 }; | 76 }; |
| 77 struct DelayAgnostic { |
| 78 DelayAgnostic() : enabled(false) {} |
| 79 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} |
| 80 bool enabled; |
| 81 }; |
74 | 82 |
75 // Use to enable experimental gain control (AGC). At startup the experimental | 83 // Use to enable experimental gain control (AGC). At startup the experimental |
76 // AGC moves the microphone volume up to |startup_min_volume| if the current | 84 // AGC moves the microphone volume up to |startup_min_volume| if the current |
77 // microphone volume is set too low. The value is clamped to its operating range | 85 // microphone volume is set too low. The value is clamped to its operating range |
78 // [12, 255]. Here, 255 maps to 100%. | 86 // [12, 255]. Here, 255 maps to 100%. |
79 // | 87 // |
80 // Must be provided through AudioProcessing::Create(Confg&). | 88 // Must be provided through AudioProcessing::Create(Confg&). |
81 #if defined(WEBRTC_CHROMIUM_BUILD) | 89 #if defined(WEBRTC_CHROMIUM_BUILD) |
82 static const int kAgcStartupMinVolume = 85; | 90 static const int kAgcStartupMinVolume = 85; |
83 #else | 91 #else |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 // This does not impact the size of frames passed to |ProcessStream()|. | 790 // This does not impact the size of frames passed to |ProcessStream()|. |
783 virtual int set_frame_size_ms(int size) = 0; | 791 virtual int set_frame_size_ms(int size) = 0; |
784 virtual int frame_size_ms() const = 0; | 792 virtual int frame_size_ms() const = 0; |
785 | 793 |
786 protected: | 794 protected: |
787 virtual ~VoiceDetection() {} | 795 virtual ~VoiceDetection() {} |
788 }; | 796 }; |
789 } // namespace webrtc | 797 } // namespace webrtc |
790 | 798 |
791 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 799 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |