Per Åhgren | b6b00dc | 2018-02-20 22:18:27 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | #include "api/audio/echo_canceller3_config.h" |
| 11 | |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 12 | #include <algorithm> |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 13 | #include <cmath> |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 14 | |
Yves Gerey | 988cc08 | 2018-10-23 12:03:01 +0200 | [diff] [blame] | 15 | #include "rtc_base/checks.h" |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 16 | #include "rtc_base/numerics/safe_minmax.h" |
| 17 | |
Per Åhgren | b6b00dc | 2018-02-20 22:18:27 +0100 | [diff] [blame] | 18 | namespace webrtc { |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 19 | namespace { |
| 20 | bool Limit(float* value, float min, float max) { |
| 21 | float clamped = rtc::SafeClamp(*value, min, max); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 22 | clamped = std::isfinite(clamped) ? clamped : min; |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 23 | bool res = *value == clamped; |
| 24 | *value = clamped; |
| 25 | return res; |
| 26 | } |
| 27 | |
| 28 | bool Limit(size_t* value, size_t min, size_t max) { |
| 29 | size_t clamped = rtc::SafeClamp(*value, min, max); |
| 30 | bool res = *value == clamped; |
| 31 | *value = clamped; |
| 32 | return res; |
| 33 | } |
| 34 | |
| 35 | bool Limit(int* value, int min, int max) { |
| 36 | int clamped = rtc::SafeClamp(*value, min, max); |
| 37 | bool res = *value == clamped; |
| 38 | *value = clamped; |
| 39 | return res; |
| 40 | } |
| 41 | } // namespace |
Per Åhgren | b6b00dc | 2018-02-20 22:18:27 +0100 | [diff] [blame] | 42 | |
| 43 | EchoCanceller3Config::EchoCanceller3Config() = default; |
Per Åhgren | 251c735 | 2018-03-28 16:31:57 +0200 | [diff] [blame] | 44 | EchoCanceller3Config::EchoCanceller3Config(const EchoCanceller3Config& e) = |
| 45 | default; |
Artem Titov | 5d3a418 | 2019-12-03 11:13:26 +0100 | [diff] [blame^] | 46 | EchoCanceller3Config& EchoCanceller3Config::operator=( |
| 47 | const EchoCanceller3Config& e) = default; |
Per Åhgren | 398689f | 2018-08-23 11:38:27 +0200 | [diff] [blame] | 48 | EchoCanceller3Config::Delay::Delay() = default; |
| 49 | EchoCanceller3Config::Delay::Delay(const EchoCanceller3Config::Delay& e) = |
| 50 | default; |
Artem Titov | 5d3a418 | 2019-12-03 11:13:26 +0100 | [diff] [blame^] | 51 | EchoCanceller3Config::Delay& EchoCanceller3Config::Delay::operator=( |
| 52 | const Delay& e) = default; |
Per Åhgren | 398689f | 2018-08-23 11:38:27 +0200 | [diff] [blame] | 53 | |
Jesús de Vicente Peña | dd09287 | 2018-05-25 16:55:11 +0200 | [diff] [blame] | 54 | EchoCanceller3Config::EchoModel::EchoModel() = default; |
| 55 | EchoCanceller3Config::EchoModel::EchoModel( |
| 56 | const EchoCanceller3Config::EchoModel& e) = default; |
Artem Titov | 5d3a418 | 2019-12-03 11:13:26 +0100 | [diff] [blame^] | 57 | EchoCanceller3Config::EchoModel& EchoCanceller3Config::EchoModel::operator=( |
| 58 | const EchoModel& e) = default; |
Jesús de Vicente Peña | dd09287 | 2018-05-25 16:55:11 +0200 | [diff] [blame] | 59 | |
Per Åhgren | 524e878 | 2018-08-24 22:48:49 +0200 | [diff] [blame] | 60 | EchoCanceller3Config::Suppressor::Suppressor() = default; |
| 61 | EchoCanceller3Config::Suppressor::Suppressor( |
| 62 | const EchoCanceller3Config::Suppressor& e) = default; |
Artem Titov | 5d3a418 | 2019-12-03 11:13:26 +0100 | [diff] [blame^] | 63 | EchoCanceller3Config::Suppressor& EchoCanceller3Config::Suppressor::operator=( |
| 64 | const Suppressor& e) = default; |
Per Åhgren | 524e878 | 2018-08-24 22:48:49 +0200 | [diff] [blame] | 65 | |
| 66 | EchoCanceller3Config::Suppressor::MaskingThresholds::MaskingThresholds( |
| 67 | float enr_transparent, |
| 68 | float enr_suppress, |
| 69 | float emr_transparent) |
| 70 | : enr_transparent(enr_transparent), |
| 71 | enr_suppress(enr_suppress), |
| 72 | emr_transparent(emr_transparent) {} |
Artem Titov | 5d3a418 | 2019-12-03 11:13:26 +0100 | [diff] [blame^] | 73 | EchoCanceller3Config::Suppressor::MaskingThresholds::MaskingThresholds( |
| 74 | const EchoCanceller3Config::Suppressor::MaskingThresholds& e) = default; |
| 75 | EchoCanceller3Config::Suppressor::MaskingThresholds& |
| 76 | EchoCanceller3Config::Suppressor::MaskingThresholds::operator=( |
| 77 | const MaskingThresholds& e) = default; |
Per Åhgren | 524e878 | 2018-08-24 22:48:49 +0200 | [diff] [blame] | 78 | |
| 79 | EchoCanceller3Config::Suppressor::Tuning::Tuning(MaskingThresholds mask_lf, |
| 80 | MaskingThresholds mask_hf, |
| 81 | float max_inc_factor, |
| 82 | float max_dec_factor_lf) |
| 83 | : mask_lf(mask_lf), |
| 84 | mask_hf(mask_hf), |
| 85 | max_inc_factor(max_inc_factor), |
| 86 | max_dec_factor_lf(max_dec_factor_lf) {} |
| 87 | EchoCanceller3Config::Suppressor::Tuning::Tuning( |
| 88 | const EchoCanceller3Config::Suppressor::Tuning& e) = default; |
Artem Titov | 5d3a418 | 2019-12-03 11:13:26 +0100 | [diff] [blame^] | 89 | EchoCanceller3Config::Suppressor::Tuning& |
| 90 | EchoCanceller3Config::Suppressor::Tuning::operator=(const Tuning& e) = default; |
Per Åhgren | 524e878 | 2018-08-24 22:48:49 +0200 | [diff] [blame] | 91 | |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 92 | bool EchoCanceller3Config::Validate(EchoCanceller3Config* config) { |
| 93 | RTC_DCHECK(config); |
| 94 | EchoCanceller3Config* c = config; |
| 95 | bool res = true; |
| 96 | |
| 97 | if (c->delay.down_sampling_factor != 4 && |
| 98 | c->delay.down_sampling_factor != 8) { |
| 99 | c->delay.down_sampling_factor = 4; |
| 100 | res = false; |
| 101 | } |
Gustaf Ullberg | 9249fbf | 2019-03-14 11:24:54 +0100 | [diff] [blame] | 102 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 103 | res = res & Limit(&c->delay.default_delay, 0, 5000); |
| 104 | res = res & Limit(&c->delay.num_filters, 0, 5000); |
Gustaf Ullberg | 9249fbf | 2019-03-14 11:24:54 +0100 | [diff] [blame] | 105 | res = res & Limit(&c->delay.delay_headroom_samples, 0, 5000); |
| 106 | res = res & Limit(&c->delay.hysteresis_limit_blocks, 0, 5000); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 107 | res = res & Limit(&c->delay.fixed_capture_delay_samples, 0, 5000); |
| 108 | res = res & Limit(&c->delay.delay_estimate_smoothing, 0.f, 1.f); |
| 109 | res = res & Limit(&c->delay.delay_candidate_detection_threshold, 0.f, 1.f); |
| 110 | res = res & Limit(&c->delay.delay_selection_thresholds.initial, 1, 250); |
| 111 | res = res & Limit(&c->delay.delay_selection_thresholds.converged, 1, 250); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 112 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 113 | res = res & Limit(&c->filter.main.length_blocks, 1, 50); |
| 114 | res = res & Limit(&c->filter.main.leakage_converged, 0.f, 1000.f); |
| 115 | res = res & Limit(&c->filter.main.leakage_diverged, 0.f, 1000.f); |
| 116 | res = res & Limit(&c->filter.main.error_floor, 0.f, 1000.f); |
| 117 | res = res & Limit(&c->filter.main.error_ceil, 0.f, 100000000.f); |
| 118 | res = res & Limit(&c->filter.main.noise_gate, 0.f, 100000000.f); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 119 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 120 | res = res & Limit(&c->filter.main_initial.length_blocks, 1, 50); |
| 121 | res = res & Limit(&c->filter.main_initial.leakage_converged, 0.f, 1000.f); |
| 122 | res = res & Limit(&c->filter.main_initial.leakage_diverged, 0.f, 1000.f); |
| 123 | res = res & Limit(&c->filter.main_initial.error_floor, 0.f, 1000.f); |
| 124 | res = res & Limit(&c->filter.main_initial.error_ceil, 0.f, 100000000.f); |
| 125 | res = res & Limit(&c->filter.main_initial.noise_gate, 0.f, 100000000.f); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 126 | |
| 127 | if (c->filter.main.length_blocks < c->filter.main_initial.length_blocks) { |
| 128 | c->filter.main_initial.length_blocks = c->filter.main.length_blocks; |
| 129 | res = false; |
| 130 | } |
| 131 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 132 | res = res & Limit(&c->filter.shadow.length_blocks, 1, 50); |
| 133 | res = res & Limit(&c->filter.shadow.rate, 0.f, 1.f); |
| 134 | res = res & Limit(&c->filter.shadow.noise_gate, 0.f, 100000000.f); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 135 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 136 | res = res & Limit(&c->filter.shadow_initial.length_blocks, 1, 50); |
| 137 | res = res & Limit(&c->filter.shadow_initial.rate, 0.f, 1.f); |
| 138 | res = res & Limit(&c->filter.shadow_initial.noise_gate, 0.f, 100000000.f); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 139 | |
| 140 | if (c->filter.shadow.length_blocks < c->filter.shadow_initial.length_blocks) { |
| 141 | c->filter.shadow_initial.length_blocks = c->filter.shadow.length_blocks; |
| 142 | res = false; |
| 143 | } |
| 144 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 145 | res = res & Limit(&c->filter.config_change_duration_blocks, 0, 100000); |
| 146 | res = res & Limit(&c->filter.initial_state_seconds, 0.f, 100.f); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 147 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 148 | res = res & Limit(&c->erle.min, 1.f, 100000.f); |
| 149 | res = res & Limit(&c->erle.max_l, 1.f, 100000.f); |
| 150 | res = res & Limit(&c->erle.max_h, 1.f, 100000.f); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 151 | if (c->erle.min > c->erle.max_l || c->erle.min > c->erle.max_h) { |
| 152 | c->erle.min = std::min(c->erle.max_l, c->erle.max_h); |
| 153 | res = false; |
| 154 | } |
Jesús de Vicente Peña | 44974e1 | 2018-11-20 12:54:23 +0100 | [diff] [blame] | 155 | res = res & Limit(&c->erle.num_sections, 1, c->filter.main.length_blocks); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 156 | |
Per Åhgren | e8efbbd | 2019-03-14 11:29:39 +0100 | [diff] [blame] | 157 | res = res & Limit(&c->ep_strength.default_gain, 0.f, 1000000.f); |
Jesús de Vicente Peña | 44974e1 | 2018-11-20 12:54:23 +0100 | [diff] [blame] | 158 | res = res & Limit(&c->ep_strength.default_len, -1.f, 1.f); |
Sam Zackrisson | 8ee06a7 | 2018-10-23 12:32:42 +0200 | [diff] [blame] | 159 | |
| 160 | res = |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 161 | res & Limit(&c->echo_audibility.low_render_limit, 0.f, 32768.f * 32768.f); |
| 162 | res = res & |
| 163 | Limit(&c->echo_audibility.normal_render_limit, 0.f, 32768.f * 32768.f); |
| 164 | res = res & Limit(&c->echo_audibility.floor_power, 0.f, 32768.f * 32768.f); |
| 165 | res = res & Limit(&c->echo_audibility.audibility_threshold_lf, 0.f, |
| 166 | 32768.f * 32768.f); |
| 167 | res = res & Limit(&c->echo_audibility.audibility_threshold_mf, 0.f, |
| 168 | 32768.f * 32768.f); |
| 169 | res = res & Limit(&c->echo_audibility.audibility_threshold_hf, 0.f, |
| 170 | 32768.f * 32768.f); |
| 171 | |
| 172 | res = res & |
| 173 | Limit(&c->render_levels.active_render_limit, 0.f, 32768.f * 32768.f); |
| 174 | res = res & Limit(&c->render_levels.poor_excitation_render_limit, 0.f, |
| 175 | 32768.f * 32768.f); |
| 176 | res = res & Limit(&c->render_levels.poor_excitation_render_limit_ds8, 0.f, |
| 177 | 32768.f * 32768.f); |
| 178 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 179 | res = res & Limit(&c->echo_model.noise_floor_hold, 0, 1000); |
| 180 | res = res & Limit(&c->echo_model.min_noise_floor_power, 0, 2000000.f); |
| 181 | res = res & Limit(&c->echo_model.stationary_gate_slope, 0, 1000000.f); |
| 182 | res = res & Limit(&c->echo_model.noise_gate_power, 0, 1000000.f); |
| 183 | res = res & Limit(&c->echo_model.noise_gate_slope, 0, 1000000.f); |
| 184 | res = res & Limit(&c->echo_model.render_pre_window_size, 0, 100); |
| 185 | res = res & Limit(&c->echo_model.render_post_window_size, 0, 100); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 186 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 187 | res = res & Limit(&c->suppressor.nearend_average_blocks, 1, 5000); |
| 188 | |
| 189 | res = res & |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 190 | Limit(&c->suppressor.normal_tuning.mask_lf.enr_transparent, 0.f, 100.f); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 191 | res = res & |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 192 | Limit(&c->suppressor.normal_tuning.mask_lf.enr_suppress, 0.f, 100.f); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 193 | res = res & |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 194 | Limit(&c->suppressor.normal_tuning.mask_lf.emr_transparent, 0.f, 100.f); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 195 | res = res & |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 196 | Limit(&c->suppressor.normal_tuning.mask_hf.enr_transparent, 0.f, 100.f); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 197 | res = res & |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 198 | Limit(&c->suppressor.normal_tuning.mask_hf.enr_suppress, 0.f, 100.f); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 199 | res = res & |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 200 | Limit(&c->suppressor.normal_tuning.mask_hf.emr_transparent, 0.f, 100.f); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 201 | res = res & Limit(&c->suppressor.normal_tuning.max_inc_factor, 0.f, 100.f); |
| 202 | res = res & Limit(&c->suppressor.normal_tuning.max_dec_factor_lf, 0.f, 100.f); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 203 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 204 | res = res & Limit(&c->suppressor.nearend_tuning.mask_lf.enr_transparent, 0.f, |
| 205 | 100.f); |
| 206 | res = res & |
Sam Zackrisson | 848273a | 2018-10-23 12:13:42 +0000 | [diff] [blame] | 207 | Limit(&c->suppressor.nearend_tuning.mask_lf.enr_suppress, 0.f, 100.f); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 208 | res = res & Limit(&c->suppressor.nearend_tuning.mask_lf.emr_transparent, 0.f, |
| 209 | 100.f); |
| 210 | res = res & Limit(&c->suppressor.nearend_tuning.mask_hf.enr_transparent, 0.f, |
| 211 | 100.f); |
| 212 | res = res & |
Sam Zackrisson | 848273a | 2018-10-23 12:13:42 +0000 | [diff] [blame] | 213 | Limit(&c->suppressor.nearend_tuning.mask_hf.enr_suppress, 0.f, 100.f); |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 214 | res = res & Limit(&c->suppressor.nearend_tuning.mask_hf.emr_transparent, 0.f, |
| 215 | 100.f); |
| 216 | res = res & Limit(&c->suppressor.nearend_tuning.max_inc_factor, 0.f, 100.f); |
Sam Zackrisson | 848273a | 2018-10-23 12:13:42 +0000 | [diff] [blame] | 217 | res = |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 218 | res & Limit(&c->suppressor.nearend_tuning.max_dec_factor_lf, 0.f, 100.f); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 219 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 220 | res = res & Limit(&c->suppressor.dominant_nearend_detection.enr_threshold, |
| 221 | 0.f, 1000000.f); |
| 222 | res = res & Limit(&c->suppressor.dominant_nearend_detection.snr_threshold, |
| 223 | 0.f, 1000000.f); |
| 224 | res = res & Limit(&c->suppressor.dominant_nearend_detection.hold_duration, 0, |
| 225 | 10000); |
| 226 | res = res & Limit(&c->suppressor.dominant_nearend_detection.trigger_threshold, |
| 227 | 0, 10000); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 228 | |
Gustaf Ullberg | f534a64 | 2019-11-25 16:13:58 +0100 | [diff] [blame] | 229 | res = res & |
| 230 | Limit(&c->suppressor.subband_nearend_detection.nearend_average_blocks, |
| 231 | 1, 1024); |
| 232 | res = |
| 233 | res & Limit(&c->suppressor.subband_nearend_detection.subband1.low, 0, 65); |
| 234 | res = res & Limit(&c->suppressor.subband_nearend_detection.subband1.high, |
| 235 | c->suppressor.subband_nearend_detection.subband1.low, 65); |
| 236 | res = |
| 237 | res & Limit(&c->suppressor.subband_nearend_detection.subband2.low, 0, 65); |
| 238 | res = res & Limit(&c->suppressor.subband_nearend_detection.subband2.high, |
| 239 | c->suppressor.subband_nearend_detection.subband2.low, 65); |
| 240 | res = res & Limit(&c->suppressor.subband_nearend_detection.nearend_threshold, |
| 241 | 0.f, 1.e24f); |
| 242 | res = res & Limit(&c->suppressor.subband_nearend_detection.snr_threshold, 0.f, |
| 243 | 1.e24f); |
| 244 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 245 | res = res & Limit(&c->suppressor.high_bands_suppression.enr_threshold, 0.f, |
| 246 | 1000000.f); |
| 247 | res = res & Limit(&c->suppressor.high_bands_suppression.max_gain_during_echo, |
| 248 | 0.f, 1.f); |
Per Åhgren | 17e4c58 | 2019-11-27 08:13:24 +0100 | [diff] [blame] | 249 | res = res & Limit(&c->suppressor.high_bands_suppression |
| 250 | .anti_howling_activation_threshold, |
| 251 | 0.f, 32768.f * 32768.f); |
| 252 | res = res & Limit(&c->suppressor.high_bands_suppression.anti_howling_gain, |
| 253 | 0.f, 1.f); |
Sam Zackrisson | 848273a | 2018-10-23 12:13:42 +0000 | [diff] [blame] | 254 | |
Sam Zackrisson | 877dc89 | 2018-10-23 14:17:38 +0200 | [diff] [blame] | 255 | res = res & Limit(&c->suppressor.floor_first_increase, 0.f, 1000000.f); |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 256 | |
| 257 | return res; |
| 258 | } |
Per Åhgren | b6b00dc | 2018-02-20 22:18:27 +0100 | [diff] [blame] | 259 | } // namespace webrtc |