OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 new ExperimentalAgc(msg.noise_robust_agc_enabled())); | 180 new ExperimentalAgc(msg.noise_robust_agc_enabled())); |
181 | 181 |
182 RTC_CHECK(msg.has_transient_suppression_enabled()); | 182 RTC_CHECK(msg.has_transient_suppression_enabled()); |
183 config.Set<ExperimentalNs>( | 183 config.Set<ExperimentalNs>( |
184 new ExperimentalNs(msg.transient_suppression_enabled())); | 184 new ExperimentalNs(msg.transient_suppression_enabled())); |
185 | 185 |
186 RTC_CHECK(msg.has_aec_extended_filter_enabled()); | 186 RTC_CHECK(msg.has_aec_extended_filter_enabled()); |
187 config.Set<ExtendedFilter>( | 187 config.Set<ExtendedFilter>( |
188 new ExtendedFilter(msg.aec_extended_filter_enabled())); | 188 new ExtendedFilter(msg.aec_extended_filter_enabled())); |
189 | 189 |
| 190 RTC_CHECK(msg.has_intelligibility_enhancer_enabled()); |
| 191 config.Set<Intelligibility>( |
| 192 new Intelligibility(msg.intelligibility_enhancer_enabled())); |
| 193 |
190 // We only create APM once, since changes on these fields should not | 194 // We only create APM once, since changes on these fields should not |
191 // happen in current implementation. | 195 // happen in current implementation. |
192 if (!apm_.get()) { | 196 if (!apm_.get()) { |
193 apm_.reset(AudioProcessing::Create(config)); | 197 apm_.reset(AudioProcessing::Create(config)); |
194 } | 198 } |
195 } | 199 } |
196 | 200 |
197 void DebugDumpReplayer::ConfigureApm(const audioproc::Config& msg) { | 201 void DebugDumpReplayer::ConfigureApm(const audioproc::Config& msg) { |
198 // AEC configs. | 202 // AEC configs. |
199 RTC_CHECK(msg.has_aec_enabled()); | 203 RTC_CHECK(msg.has_aec_enabled()); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 static_cast<NoiseSuppression::Level>(msg.ns_level()))); | 261 static_cast<NoiseSuppression::Level>(msg.ns_level()))); |
258 } | 262 } |
259 | 263 |
260 void DebugDumpReplayer::LoadNextMessage() { | 264 void DebugDumpReplayer::LoadNextMessage() { |
261 has_next_event_ = | 265 has_next_event_ = |
262 debug_file_ && ReadMessageFromFile(debug_file_, &next_event_); | 266 debug_file_ && ReadMessageFromFile(debug_file_, &next_event_); |
263 } | 267 } |
264 | 268 |
265 } // namespace test | 269 } // namespace test |
266 } // namespace webrtc | 270 } // namespace webrtc |
OLD | NEW |