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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 struct Mask { | 285 struct Mask { |
286 float m1 = 0.01f; | 286 float m1 = 0.01f; |
287 float m2 = 0.001f; | 287 float m2 = 0.001f; |
288 float m3 = 0.01f; | 288 float m3 = 0.01f; |
289 float m4 = 0.1f; | 289 float m4 = 0.1f; |
290 } gain_mask; | 290 } gain_mask; |
291 | 291 |
292 struct EchoAudibility { | 292 struct EchoAudibility { |
293 float low_render_limit = 192.f; | 293 float low_render_limit = 192.f; |
294 float normal_render_limit = 64.f; | 294 float normal_render_limit = 64.f; |
| 295 float active_render_limit = 100.f; |
295 } echo_audibility; | 296 } echo_audibility; |
296 | 297 |
| 298 struct RenderLevels { |
| 299 float active_render_limit = 100.f; |
| 300 float poor_excitation_render_limit = 150.f; |
| 301 } render_levels; |
| 302 |
297 struct GainUpdates { | 303 struct GainUpdates { |
298 struct GainChanges { | 304 struct GainChanges { |
299 float max_inc; | 305 float max_inc; |
300 float max_dec; | 306 float max_dec; |
301 float rate_inc; | 307 float rate_inc; |
302 float rate_dec; | 308 float rate_dec; |
303 float min_inc; | 309 float min_inc; |
304 float min_dec; | 310 float min_dec; |
305 }; | 311 }; |
306 | 312 |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 // This does not impact the size of frames passed to |ProcessStream()|. | 1132 // This does not impact the size of frames passed to |ProcessStream()|. |
1127 virtual int set_frame_size_ms(int size) = 0; | 1133 virtual int set_frame_size_ms(int size) = 0; |
1128 virtual int frame_size_ms() const = 0; | 1134 virtual int frame_size_ms() const = 0; |
1129 | 1135 |
1130 protected: | 1136 protected: |
1131 virtual ~VoiceDetection() {} | 1137 virtual ~VoiceDetection() {} |
1132 }; | 1138 }; |
1133 } // namespace webrtc | 1139 } // namespace webrtc |
1134 | 1140 |
1135 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 1141 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |