Chromium Code Reviews| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 struct EchoCanceller3 { | 269 struct EchoCanceller3 { |
| 270 bool enabled = false; | 270 bool enabled = false; |
| 271 } echo_canceller3; | 271 } echo_canceller3; |
| 272 | 272 |
| 273 // Enables the next generation AGC functionality. This feature replaces the | 273 // Enables the next generation AGC functionality. This feature replaces the |
| 274 // standard methods of gain control in the previous AGC. | 274 // standard methods of gain control in the previous AGC. |
| 275 // The functionality is not yet activated in the code and turning this on | 275 // The functionality is not yet activated in the code and turning this on |
| 276 // does not yet have the desired behavior. | 276 // does not yet have the desired behavior. |
| 277 struct GainController2 { | 277 struct GainController2 { |
| 278 bool enabled = false; | 278 bool enabled = false; |
| 279 // Fixed digital gain params. | |
| 280 float fixed_gain_db = 5.f; | |
|
peah-webrtc
2017/08/18 04:51:06
I think the default gain should be 0 (dB).
aleloi
2017/08/18 08:28:31
Idea: make the default gain 0 (dB), but also refus
peah-webrtc
2017/08/18 09:12:46
This is (or at least is intended to be) implemente
| |
| 279 } gain_controller2; | 281 } gain_controller2; |
| 280 }; | 282 }; |
| 281 | 283 |
| 282 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. | 284 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. |
| 283 enum ChannelLayout { | 285 enum ChannelLayout { |
| 284 kMono, | 286 kMono, |
| 285 // Left, right. | 287 // Left, right. |
| 286 kStereo, | 288 kStereo, |
| 287 // Mono, keyboard, and mic. | 289 // Mono, keyboard, and mic. |
| 288 kMonoAndKeyboard, | 290 kMonoAndKeyboard, |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1098 // This does not impact the size of frames passed to |ProcessStream()|. | 1100 // This does not impact the size of frames passed to |ProcessStream()|. |
| 1099 virtual int set_frame_size_ms(int size) = 0; | 1101 virtual int set_frame_size_ms(int size) = 0; |
| 1100 virtual int frame_size_ms() const = 0; | 1102 virtual int frame_size_ms() const = 0; |
| 1101 | 1103 |
| 1102 protected: | 1104 protected: |
| 1103 virtual ~VoiceDetection() {} | 1105 virtual ~VoiceDetection() {} |
| 1104 }; | 1106 }; |
| 1105 } // namespace webrtc | 1107 } // namespace webrtc |
| 1106 | 1108 |
| 1107 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 1109 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
| OLD | NEW |